...

Package proto

import "github.com/letsencrypt/boulder/nonce/proto"
Overview
Index

Overview ▾

Variables

var File_nonce_proto protoreflect.FileDescriptor

NonceService_ServiceDesc is the grpc.ServiceDesc for NonceService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

var NonceService_ServiceDesc = grpc.ServiceDesc{
    ServiceName: "nonce.NonceService",
    HandlerType: (*NonceServiceServer)(nil),
    Methods: []grpc.MethodDesc{
        {
            MethodName: "Nonce",
            Handler:    _NonceService_Nonce_Handler,
        },
        {
            MethodName: "Redeem",
            Handler:    _NonceService_Redeem_Handler,
        },
    },
    Streams:  []grpc.StreamDesc{},
    Metadata: "nonce.proto",
}

func RegisterNonceServiceServer

func RegisterNonceServiceServer(s grpc.ServiceRegistrar, srv NonceServiceServer)

type NonceMessage

type NonceMessage struct {
    Nonce string `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
    // contains filtered or unexported fields
}

func (*NonceMessage) Descriptor

func (*NonceMessage) Descriptor() ([]byte, []int)

Deprecated: Use NonceMessage.ProtoReflect.Descriptor instead.

func (*NonceMessage) GetNonce

func (x *NonceMessage) GetNonce() string

func (*NonceMessage) ProtoMessage

func (*NonceMessage) ProtoMessage()

func (*NonceMessage) ProtoReflect

func (x *NonceMessage) ProtoReflect() protoreflect.Message

func (*NonceMessage) Reset

func (x *NonceMessage) Reset()

func (*NonceMessage) String

func (x *NonceMessage) String() string

type NonceServiceClient

NonceServiceClient is the client API for NonceService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type NonceServiceClient interface {
    Nonce(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*NonceMessage, error)
    Redeem(ctx context.Context, in *NonceMessage, opts ...grpc.CallOption) (*ValidMessage, error)
}

func NewNonceServiceClient

func NewNonceServiceClient(cc grpc.ClientConnInterface) NonceServiceClient

type NonceServiceServer

NonceServiceServer is the server API for NonceService service. All implementations must embed UnimplementedNonceServiceServer for forward compatibility

type NonceServiceServer interface {
    Nonce(context.Context, *emptypb.Empty) (*NonceMessage, error)
    Redeem(context.Context, *NonceMessage) (*ValidMessage, error)
    // contains filtered or unexported methods
}

type UnimplementedNonceServiceServer

UnimplementedNonceServiceServer must be embedded to have forward compatible implementations.

type UnimplementedNonceServiceServer struct {
}

func (UnimplementedNonceServiceServer) Nonce

func (UnimplementedNonceServiceServer) Nonce(context.Context, *emptypb.Empty) (*NonceMessage, error)

func (UnimplementedNonceServiceServer) Redeem

func (UnimplementedNonceServiceServer) Redeem(context.Context, *NonceMessage) (*ValidMessage, error)

type UnsafeNonceServiceServer

UnsafeNonceServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NonceServiceServer will result in compilation errors.

type UnsafeNonceServiceServer interface {
    // contains filtered or unexported methods
}

type ValidMessage

type ValidMessage struct {
    Valid bool `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"`
    // contains filtered or unexported fields
}

func (*ValidMessage) Descriptor

func (*ValidMessage) Descriptor() ([]byte, []int)

Deprecated: Use ValidMessage.ProtoReflect.Descriptor instead.

func (*ValidMessage) GetValid

func (x *ValidMessage) GetValid() bool

func (*ValidMessage) ProtoMessage

func (*ValidMessage) ProtoMessage()

func (*ValidMessage) ProtoReflect

func (x *ValidMessage) ProtoReflect() protoreflect.Message

func (*ValidMessage) Reset

func (x *ValidMessage) Reset()

func (*ValidMessage) String

func (x *ValidMessage) String() string