uuidv1

package
v0.0.0-...-ef50a8d Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_uuid_v1_uuid_proto protoreflect.FileDescriptor
View Source
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 (*GetUuidByGoogleUUIDV4Request) Reset

func (x *GetUuidByGoogleUUIDV4Request) Reset()

func (*GetUuidByGoogleUUIDV4Request) 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 (*GetUuidByGoogleUUIDV4Response) GetError

func (x *GetUuidByGoogleUUIDV4Response) GetError() uint32

func (*GetUuidByGoogleUUIDV4Response) GetMsg

func (*GetUuidByGoogleUUIDV4Response) ProtoMessage

func (*GetUuidByGoogleUUIDV4Response) ProtoMessage()

func (*GetUuidByGoogleUUIDV4Response) ProtoReflect

func (*GetUuidByGoogleUUIDV4Response) Reset

func (x *GetUuidByGoogleUUIDV4Response) Reset()

func (*GetUuidByGoogleUUIDV4Response) 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 (*GetUuidByGoogleUUIDV4Response_Data) ProtoMessage

func (*GetUuidByGoogleUUIDV4Response_Data) ProtoMessage()

func (*GetUuidByGoogleUUIDV4Response_Data) ProtoReflect

func (*GetUuidByGoogleUUIDV4Response_Data) Reset

func (*GetUuidByGoogleUUIDV4Response_Data) 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 (*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 (*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 (*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 (*GetUuidBySnowflakeResponse_Data) ProtoMessage

func (*GetUuidBySnowflakeResponse_Data) ProtoMessage()

func (*GetUuidBySnowflakeResponse_Data) ProtoReflect

func (*GetUuidBySnowflakeResponse_Data) Reset

func (*GetUuidBySnowflakeResponse_Data) String

type UnimplementedUuidServiceServer

type UnimplementedUuidServiceServer struct {
}

UnimplementedUuidServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedUuidServiceServer) GetUuidBySnowflake

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.

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

Jump to

Keyboard shortcuts

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