...

Package inmemnonce

import "github.com/letsencrypt/boulder/test/inmem/nonce"
Overview
Index

Overview ▾

type Service

Service implements noncepb.NonceServiceClient for tests.

type Service struct {
    *nonce.NonceService
}

func (*Service) AsSource

func (imns *Service) AsSource() jose.NonceSource

AsSource returns a wrapper type that implements jose.NonceSource using this inmemory service. This is useful so that tests can get nonces for signing their JWS that will be accepted by the test WFE configured using this service.

func (*Service) Nonce

func (imns *Service) Nonce(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*noncepb.NonceMessage, error)

Nonce implements proto.NonceServiceClient

func (*Service) Redeem

func (imns *Service) Redeem(ctx context.Context, in *noncepb.NonceMessage, opts ...grpc.CallOption) (*noncepb.ValidMessage, error)

Redeem implements proto.NonceServiceClient