Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_grpc_url_gen_urlgen_url_gen_proto protoreflect.FileDescriptor
var KeyGen_ServiceDesc = grpc.ServiceDesc{ ServiceName: "urlgen.KeyGen", HandlerType: (*KeyGenServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GenerateKey", Handler: _KeyGen_GenerateKey_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "grpc/url_gen/urlgen/url_gen.proto", }
KeyGen_ServiceDesc is the grpc.ServiceDesc for KeyGen service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterKeyGenServer ¶
func RegisterKeyGenServer(s grpc.ServiceRegistrar, srv KeyGenServer)
Types ¶
type Key ¶
type Key struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*Key) Descriptor
deprecated
func (*Key) ProtoMessage ¶
func (*Key) ProtoMessage()
func (*Key) ProtoReflect ¶
func (x *Key) ProtoReflect() protoreflect.Message
type KeyGenClient ¶
type KeyGenClient interface {
GenerateKey(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Key, error)
}
KeyGenClient is the client API for KeyGen 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.
func NewKeyGenClient ¶
func NewKeyGenClient(cc grpc.ClientConnInterface) KeyGenClient
type KeyGenServer ¶
type KeyGenServer interface { GenerateKey(context.Context, *empty.Empty) (*Key, error) // contains filtered or unexported methods }
KeyGenServer is the server API for KeyGen service. All implementations must embed UnimplementedKeyGenServer for forward compatibility
type UnimplementedKeyGenServer ¶
type UnimplementedKeyGenServer struct { }
UnimplementedKeyGenServer must be embedded to have forward compatible implementations.
func (UnimplementedKeyGenServer) GenerateKey ¶
type UnsafeKeyGenServer ¶
type UnsafeKeyGenServer interface {
// contains filtered or unexported methods
}
UnsafeKeyGenServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to KeyGenServer will result in compilation errors.