proto

package
v0.0.0-...-94d1468 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_nonce_proto protoreflect.FileDescriptor
View Source
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",
}

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)

Functions

func RegisterNonceServiceServer

func RegisterNonceServiceServer(s grpc.ServiceRegistrar, srv NonceServiceServer)

Types

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 deprecated

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

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)
}

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 NonceServiceServer

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

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

type UnimplementedNonceServiceServer

type UnimplementedNonceServiceServer struct {
}

UnimplementedNonceServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedNonceServiceServer) Nonce

func (UnimplementedNonceServiceServer) Redeem

type UnsafeNonceServiceServer

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

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 ValidMessage

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

func (*ValidMessage) Descriptor deprecated

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL