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(s grpc.ServiceRegistrar, srv NonceServiceServer)
type NonceMessage struct { Nonce string `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"` // contains filtered or unexported fields }
func (*NonceMessage) Descriptor() ([]byte, []int)
Deprecated: Use NonceMessage.ProtoReflect.Descriptor instead.
func (x *NonceMessage) GetNonce() string
func (*NonceMessage) ProtoMessage()
func (x *NonceMessage) ProtoReflect() protoreflect.Message
func (x *NonceMessage) Reset()
func (x *NonceMessage) String() string
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(cc grpc.ClientConnInterface) NonceServiceClient
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 }
UnimplementedNonceServiceServer must be embedded to have forward compatible implementations.
type UnimplementedNonceServiceServer struct { }
func (UnimplementedNonceServiceServer) Nonce(context.Context, *emptypb.Empty) (*NonceMessage, error)
func (UnimplementedNonceServiceServer) Redeem(context.Context, *NonceMessage) (*ValidMessage, error)
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 struct { Valid bool `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"` // contains filtered or unexported fields }
func (*ValidMessage) Descriptor() ([]byte, []int)
Deprecated: Use ValidMessage.ProtoReflect.Descriptor instead.
func (x *ValidMessage) GetValid() bool
func (*ValidMessage) ProtoMessage()
func (x *ValidMessage) ProtoReflect() protoreflect.Message
func (x *ValidMessage) Reset()
func (x *ValidMessage) String() string