Documentation
¶
Index ¶
- Variables
- func RegisterUuidServiceServer(s grpc.ServiceRegistrar, srv UuidServiceServer)
- type GetUuidByGoogleUUIDV4Request
- func (*GetUuidByGoogleUUIDV4Request) Descriptor() ([]byte, []int)deprecated
- func (*GetUuidByGoogleUUIDV4Request) ProtoMessage()
- func (x *GetUuidByGoogleUUIDV4Request) ProtoReflect() protoreflect.Message
- func (x *GetUuidByGoogleUUIDV4Request) Reset()
- func (x *GetUuidByGoogleUUIDV4Request) String() string
- type GetUuidByGoogleUUIDV4Response
- func (*GetUuidByGoogleUUIDV4Response) Descriptor() ([]byte, []int)deprecated
- func (x *GetUuidByGoogleUUIDV4Response) GetData() *GetUuidByGoogleUUIDV4Response_Data
- func (x *GetUuidByGoogleUUIDV4Response) GetError() uint32
- func (x *GetUuidByGoogleUUIDV4Response) GetMsg() string
- func (*GetUuidByGoogleUUIDV4Response) ProtoMessage()
- func (x *GetUuidByGoogleUUIDV4Response) ProtoReflect() protoreflect.Message
- func (x *GetUuidByGoogleUUIDV4Response) Reset()
- func (x *GetUuidByGoogleUUIDV4Response) String() string
- type GetUuidByGoogleUUIDV4Response_Data
- func (*GetUuidByGoogleUUIDV4Response_Data) Descriptor() ([]byte, []int)deprecated
- func (x *GetUuidByGoogleUUIDV4Response_Data) GetUuid() string
- func (*GetUuidByGoogleUUIDV4Response_Data) ProtoMessage()
- func (x *GetUuidByGoogleUUIDV4Response_Data) ProtoReflect() protoreflect.Message
- func (x *GetUuidByGoogleUUIDV4Response_Data) Reset()
- func (x *GetUuidByGoogleUUIDV4Response_Data) String() string
- type GetUuidBySnowflakeRequest
- type GetUuidBySnowflakeResponse
- func (*GetUuidBySnowflakeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetUuidBySnowflakeResponse) GetData() *GetUuidBySnowflakeResponse_Data
- func (x *GetUuidBySnowflakeResponse) GetError() uint32
- func (x *GetUuidBySnowflakeResponse) GetMsg() string
- func (*GetUuidBySnowflakeResponse) ProtoMessage()
- func (x *GetUuidBySnowflakeResponse) ProtoReflect() protoreflect.Message
- func (x *GetUuidBySnowflakeResponse) Reset()
- func (x *GetUuidBySnowflakeResponse) String() string
- type GetUuidBySnowflakeResponse_Data
- func (*GetUuidBySnowflakeResponse_Data) Descriptor() ([]byte, []int)deprecated
- func (x *GetUuidBySnowflakeResponse_Data) GetUuid() string
- func (*GetUuidBySnowflakeResponse_Data) ProtoMessage()
- func (x *GetUuidBySnowflakeResponse_Data) ProtoReflect() protoreflect.Message
- func (x *GetUuidBySnowflakeResponse_Data) Reset()
- func (x *GetUuidBySnowflakeResponse_Data) String() string
- type UnimplementedUuidServiceServer
- type UnsafeUuidServiceServer
- type UuidServiceClient
- type UuidServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_uuid_v1_uuid_proto protoreflect.FileDescriptor
var UuidService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "uuid.v1.UuidService", HandlerType: (*UuidServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetUuidBySnowflake", Handler: _UuidService_GetUuidBySnowflake_Handler, }, { MethodName: "GetUuidByGoogleUUIDV4", Handler: _UuidService_GetUuidByGoogleUUIDV4_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "uuid/v1/uuid.proto", }
UuidService_ServiceDesc is the grpc.ServiceDesc for UuidService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterUuidServiceServer ¶
func RegisterUuidServiceServer(s grpc.ServiceRegistrar, srv UuidServiceServer)
Types ¶
type GetUuidByGoogleUUIDV4Request ¶
type GetUuidByGoogleUUIDV4Request struct {
// contains filtered or unexported fields
}
The request message is null.
func (*GetUuidByGoogleUUIDV4Request) Descriptor
deprecated
func (*GetUuidByGoogleUUIDV4Request) Descriptor() ([]byte, []int)
Deprecated: Use GetUuidByGoogleUUIDV4Request.ProtoReflect.Descriptor instead.
func (*GetUuidByGoogleUUIDV4Request) ProtoMessage ¶
func (*GetUuidByGoogleUUIDV4Request) ProtoMessage()
func (*GetUuidByGoogleUUIDV4Request) ProtoReflect ¶
func (x *GetUuidByGoogleUUIDV4Request) ProtoReflect() protoreflect.Message
func (*GetUuidByGoogleUUIDV4Request) Reset ¶
func (x *GetUuidByGoogleUUIDV4Request) Reset()
func (*GetUuidByGoogleUUIDV4Request) String ¶
func (x *GetUuidByGoogleUUIDV4Request) String() string
type GetUuidByGoogleUUIDV4Response ¶
type GetUuidByGoogleUUIDV4Response struct { // error Error uint32 `protobuf:"varint,1,opt,name=error,proto3" json:"error,omitempty"` // msg Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` // data ... Data *GetUuidByGoogleUUIDV4Response_Data `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
The response message containing the UUID.
func (*GetUuidByGoogleUUIDV4Response) Descriptor
deprecated
func (*GetUuidByGoogleUUIDV4Response) Descriptor() ([]byte, []int)
Deprecated: Use GetUuidByGoogleUUIDV4Response.ProtoReflect.Descriptor instead.
func (*GetUuidByGoogleUUIDV4Response) GetData ¶
func (x *GetUuidByGoogleUUIDV4Response) GetData() *GetUuidByGoogleUUIDV4Response_Data
func (*GetUuidByGoogleUUIDV4Response) GetError ¶
func (x *GetUuidByGoogleUUIDV4Response) GetError() uint32
func (*GetUuidByGoogleUUIDV4Response) GetMsg ¶
func (x *GetUuidByGoogleUUIDV4Response) GetMsg() string
func (*GetUuidByGoogleUUIDV4Response) ProtoMessage ¶
func (*GetUuidByGoogleUUIDV4Response) ProtoMessage()
func (*GetUuidByGoogleUUIDV4Response) ProtoReflect ¶
func (x *GetUuidByGoogleUUIDV4Response) ProtoReflect() protoreflect.Message
func (*GetUuidByGoogleUUIDV4Response) Reset ¶
func (x *GetUuidByGoogleUUIDV4Response) Reset()
func (*GetUuidByGoogleUUIDV4Response) String ¶
func (x *GetUuidByGoogleUUIDV4Response) String() string
type GetUuidByGoogleUUIDV4Response_Data ¶
type GetUuidByGoogleUUIDV4Response_Data struct { // message ... Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // contains filtered or unexported fields }
Data ...
func (*GetUuidByGoogleUUIDV4Response_Data) Descriptor
deprecated
func (*GetUuidByGoogleUUIDV4Response_Data) Descriptor() ([]byte, []int)
Deprecated: Use GetUuidByGoogleUUIDV4Response_Data.ProtoReflect.Descriptor instead.
func (*GetUuidByGoogleUUIDV4Response_Data) GetUuid ¶
func (x *GetUuidByGoogleUUIDV4Response_Data) GetUuid() string
func (*GetUuidByGoogleUUIDV4Response_Data) ProtoMessage ¶
func (*GetUuidByGoogleUUIDV4Response_Data) ProtoMessage()
func (*GetUuidByGoogleUUIDV4Response_Data) ProtoReflect ¶
func (x *GetUuidByGoogleUUIDV4Response_Data) ProtoReflect() protoreflect.Message
func (*GetUuidByGoogleUUIDV4Response_Data) Reset ¶
func (x *GetUuidByGoogleUUIDV4Response_Data) Reset()
func (*GetUuidByGoogleUUIDV4Response_Data) String ¶
func (x *GetUuidByGoogleUUIDV4Response_Data) String() string
type GetUuidBySnowflakeRequest ¶
type GetUuidBySnowflakeRequest struct {
// contains filtered or unexported fields
}
The request message is contains the nodeId.
func (*GetUuidBySnowflakeRequest) Descriptor
deprecated
func (*GetUuidBySnowflakeRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUuidBySnowflakeRequest.ProtoReflect.Descriptor instead.
func (*GetUuidBySnowflakeRequest) ProtoMessage ¶
func (*GetUuidBySnowflakeRequest) ProtoMessage()
func (*GetUuidBySnowflakeRequest) ProtoReflect ¶
func (x *GetUuidBySnowflakeRequest) ProtoReflect() protoreflect.Message
func (*GetUuidBySnowflakeRequest) Reset ¶
func (x *GetUuidBySnowflakeRequest) Reset()
func (*GetUuidBySnowflakeRequest) String ¶
func (x *GetUuidBySnowflakeRequest) String() string
type GetUuidBySnowflakeResponse ¶
type GetUuidBySnowflakeResponse struct { // error Error uint32 `protobuf:"varint,1,opt,name=error,proto3" json:"error,omitempty"` // msg Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` // data ... Data *GetUuidBySnowflakeResponse_Data `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
The response message containing the UUID.
func (*GetUuidBySnowflakeResponse) Descriptor
deprecated
func (*GetUuidBySnowflakeResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUuidBySnowflakeResponse.ProtoReflect.Descriptor instead.
func (*GetUuidBySnowflakeResponse) GetData ¶
func (x *GetUuidBySnowflakeResponse) GetData() *GetUuidBySnowflakeResponse_Data
func (*GetUuidBySnowflakeResponse) GetError ¶
func (x *GetUuidBySnowflakeResponse) GetError() uint32
func (*GetUuidBySnowflakeResponse) GetMsg ¶
func (x *GetUuidBySnowflakeResponse) GetMsg() string
func (*GetUuidBySnowflakeResponse) ProtoMessage ¶
func (*GetUuidBySnowflakeResponse) ProtoMessage()
func (*GetUuidBySnowflakeResponse) ProtoReflect ¶
func (x *GetUuidBySnowflakeResponse) ProtoReflect() protoreflect.Message
func (*GetUuidBySnowflakeResponse) Reset ¶
func (x *GetUuidBySnowflakeResponse) Reset()
func (*GetUuidBySnowflakeResponse) String ¶
func (x *GetUuidBySnowflakeResponse) String() string
type GetUuidBySnowflakeResponse_Data ¶
type GetUuidBySnowflakeResponse_Data struct { // message ... Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // contains filtered or unexported fields }
Data ...
func (*GetUuidBySnowflakeResponse_Data) Descriptor
deprecated
func (*GetUuidBySnowflakeResponse_Data) Descriptor() ([]byte, []int)
Deprecated: Use GetUuidBySnowflakeResponse_Data.ProtoReflect.Descriptor instead.
func (*GetUuidBySnowflakeResponse_Data) GetUuid ¶
func (x *GetUuidBySnowflakeResponse_Data) GetUuid() string
func (*GetUuidBySnowflakeResponse_Data) ProtoMessage ¶
func (*GetUuidBySnowflakeResponse_Data) ProtoMessage()
func (*GetUuidBySnowflakeResponse_Data) ProtoReflect ¶
func (x *GetUuidBySnowflakeResponse_Data) ProtoReflect() protoreflect.Message
func (*GetUuidBySnowflakeResponse_Data) Reset ¶
func (x *GetUuidBySnowflakeResponse_Data) Reset()
func (*GetUuidBySnowflakeResponse_Data) String ¶
func (x *GetUuidBySnowflakeResponse_Data) String() string
type UnimplementedUuidServiceServer ¶
type UnimplementedUuidServiceServer struct { }
UnimplementedUuidServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedUuidServiceServer) GetUuidByGoogleUUIDV4 ¶
func (UnimplementedUuidServiceServer) GetUuidByGoogleUUIDV4(context.Context, *GetUuidByGoogleUUIDV4Request) (*GetUuidByGoogleUUIDV4Response, error)
func (UnimplementedUuidServiceServer) GetUuidBySnowflake ¶
func (UnimplementedUuidServiceServer) GetUuidBySnowflake(context.Context, *GetUuidBySnowflakeRequest) (*GetUuidBySnowflakeResponse, error)
type UnsafeUuidServiceServer ¶
type UnsafeUuidServiceServer interface {
// contains filtered or unexported methods
}
UnsafeUuidServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UuidServiceServer will result in compilation errors.
type UuidServiceClient ¶
type UuidServiceClient interface { // Get a uuid through the snowflake algorithm GetUuidBySnowflake(ctx context.Context, in *GetUuidBySnowflakeRequest, opts ...grpc.CallOption) (*GetUuidBySnowflakeResponse, error) // Get a uuid through the google uuid v4 GetUuidByGoogleUUIDV4(ctx context.Context, in *GetUuidByGoogleUUIDV4Request, opts ...grpc.CallOption) (*GetUuidByGoogleUUIDV4Response, error) }
UuidServiceClient is the client API for UuidService 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 NewUuidServiceClient ¶
func NewUuidServiceClient(cc grpc.ClientConnInterface) UuidServiceClient
type UuidServiceServer ¶
type UuidServiceServer interface { // Get a uuid through the snowflake algorithm GetUuidBySnowflake(context.Context, *GetUuidBySnowflakeRequest) (*GetUuidBySnowflakeResponse, error) // Get a uuid through the google uuid v4 GetUuidByGoogleUUIDV4(context.Context, *GetUuidByGoogleUUIDV4Request) (*GetUuidByGoogleUUIDV4Response, error) }
UuidServiceServer is the server API for UuidService service. All implementations should embed UnimplementedUuidServiceServer for forward compatibility