Documentation
¶
Index ¶
Constants ¶
const (
SnowflakeService_UniqueId_FullMethodName = "/snowflake.v1.SnowflakeService/UniqueId"
)
Variables ¶
var File_snowflake_v1_snowflake_proto protoreflect.FileDescriptor
var SnowflakeService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "snowflake.v1.SnowflakeService", HandlerType: (*SnowflakeServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "UniqueId", Handler: _SnowflakeService_UniqueId_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "snowflake/v1/snowflake.proto", }
SnowflakeService_ServiceDesc is the grpc.ServiceDesc for SnowflakeService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSnowflakeServiceServer ¶
func RegisterSnowflakeServiceServer(s grpc.ServiceRegistrar, srv SnowflakeServiceServer)
Types ¶
type SnowflakeServiceClient ¶
type SnowflakeServiceClient interface { // Sends a UniqueId request UniqueId(ctx context.Context, in *UniqueIdRequest, opts ...grpc.CallOption) (*UniqueIdResponse, error) }
SnowflakeServiceClient is the client API for SnowflakeService 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 NewSnowflakeServiceClient ¶
func NewSnowflakeServiceClient(cc grpc.ClientConnInterface) SnowflakeServiceClient
type SnowflakeServiceServer ¶
type SnowflakeServiceServer interface { // Sends a UniqueId request UniqueId(context.Context, *UniqueIdRequest) (*UniqueIdResponse, error) }
SnowflakeServiceServer is the server API for SnowflakeService service. All implementations should embed UnimplementedSnowflakeServiceServer for forward compatibility
type UnimplementedSnowflakeServiceServer ¶
type UnimplementedSnowflakeServiceServer struct { }
UnimplementedSnowflakeServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedSnowflakeServiceServer) UniqueId ¶
func (UnimplementedSnowflakeServiceServer) UniqueId(context.Context, *UniqueIdRequest) (*UniqueIdResponse, error)
type UniqueIdRequest ¶
type UniqueIdRequest struct { // name ... Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
The request message containing the user's name.
func (*UniqueIdRequest) Descriptor
deprecated
func (*UniqueIdRequest) Descriptor() ([]byte, []int)
Deprecated: Use UniqueIdRequest.ProtoReflect.Descriptor instead.
func (*UniqueIdRequest) GetName ¶
func (x *UniqueIdRequest) GetName() string
func (*UniqueIdRequest) ProtoMessage ¶
func (*UniqueIdRequest) ProtoMessage()
func (*UniqueIdRequest) ProtoReflect ¶
func (x *UniqueIdRequest) ProtoReflect() protoreflect.Message
func (*UniqueIdRequest) Reset ¶
func (x *UniqueIdRequest) Reset()
func (*UniqueIdRequest) String ¶
func (x *UniqueIdRequest) String() string
type UniqueIdResponse ¶
type UniqueIdResponse struct { // Uuid Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // contains filtered or unexported fields }
The response message containing the greetings
func (*UniqueIdResponse) Descriptor
deprecated
func (*UniqueIdResponse) Descriptor() ([]byte, []int)
Deprecated: Use UniqueIdResponse.ProtoReflect.Descriptor instead.
func (*UniqueIdResponse) GetUuid ¶
func (x *UniqueIdResponse) GetUuid() string
func (*UniqueIdResponse) ProtoMessage ¶
func (*UniqueIdResponse) ProtoMessage()
func (*UniqueIdResponse) ProtoReflect ¶
func (x *UniqueIdResponse) ProtoReflect() protoreflect.Message
func (*UniqueIdResponse) Reset ¶
func (x *UniqueIdResponse) Reset()
func (*UniqueIdResponse) String ¶
func (x *UniqueIdResponse) String() string
type UnsafeSnowflakeServiceServer ¶
type UnsafeSnowflakeServiceServer interface {
// contains filtered or unexported methods
}
UnsafeSnowflakeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SnowflakeServiceServer will result in compilation errors.