uuid

package
v0.0.0-...-c9f961e Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const AppID = "discovery:///uuid"

AppID .

Variables

View Source
var File_api_uuid_uuid_proto protoreflect.FileDescriptor
View Source
var UUID_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.uuid.UUID",
	HandlerType: (*UUIDServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GenID",
			Handler:    _UUID_GenID_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/uuid/uuid.proto",
}

UUID_ServiceDesc is the grpc.ServiceDesc for UUID service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterUUIDServer

func RegisterUUIDServer(s grpc.ServiceRegistrar, srv UUIDServer)

Types

type GenIDReq

type GenIDReq struct {
	// contains filtered or unexported fields
}

func (*GenIDReq) Descriptor deprecated

func (*GenIDReq) Descriptor() ([]byte, []int)

Deprecated: Use GenIDReq.ProtoReflect.Descriptor instead.

func (*GenIDReq) ProtoMessage

func (*GenIDReq) ProtoMessage()

func (*GenIDReq) ProtoReflect

func (x *GenIDReq) ProtoReflect() protoreflect.Message

func (*GenIDReq) Reset

func (x *GenIDReq) Reset()

func (*GenIDReq) String

func (x *GenIDReq) String() string

func (*GenIDReq) Validate

func (m *GenIDReq) Validate() error

Validate checks the field values on GenIDReq with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type GenIDReqValidationError

type GenIDReqValidationError struct {
	// contains filtered or unexported fields
}

GenIDReqValidationError is the validation error returned by GenIDReq.Validate if the designated constraints aren't met.

func (GenIDReqValidationError) Cause

func (e GenIDReqValidationError) Cause() error

Cause function returns cause value.

func (GenIDReqValidationError) Error

func (e GenIDReqValidationError) Error() string

Error satisfies the builtin error interface

func (GenIDReqValidationError) ErrorName

func (e GenIDReqValidationError) ErrorName() string

ErrorName returns error name.

func (GenIDReqValidationError) Field

func (e GenIDReqValidationError) Field() string

Field function returns field value.

func (GenIDReqValidationError) Key

func (e GenIDReqValidationError) Key() bool

Key function returns key value.

func (GenIDReqValidationError) Reason

func (e GenIDReqValidationError) Reason() string

Reason function returns reason value.

type GenIDResp

type GenIDResp struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GenIDResp) Descriptor deprecated

func (*GenIDResp) Descriptor() ([]byte, []int)

Deprecated: Use GenIDResp.ProtoReflect.Descriptor instead.

func (*GenIDResp) GetId

func (x *GenIDResp) GetId() uint64

func (*GenIDResp) ProtoMessage

func (*GenIDResp) ProtoMessage()

func (*GenIDResp) ProtoReflect

func (x *GenIDResp) ProtoReflect() protoreflect.Message

func (*GenIDResp) Reset

func (x *GenIDResp) Reset()

func (*GenIDResp) String

func (x *GenIDResp) String() string

func (*GenIDResp) Validate

func (m *GenIDResp) Validate() error

Validate checks the field values on GenIDResp with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type GenIDRespValidationError

type GenIDRespValidationError struct {
	// contains filtered or unexported fields
}

GenIDRespValidationError is the validation error returned by GenIDResp.Validate if the designated constraints aren't met.

func (GenIDRespValidationError) Cause

func (e GenIDRespValidationError) Cause() error

Cause function returns cause value.

func (GenIDRespValidationError) Error

func (e GenIDRespValidationError) Error() string

Error satisfies the builtin error interface

func (GenIDRespValidationError) ErrorName

func (e GenIDRespValidationError) ErrorName() string

ErrorName returns error name.

func (GenIDRespValidationError) Field

func (e GenIDRespValidationError) Field() string

Field function returns field value.

func (GenIDRespValidationError) Key

Key function returns key value.

func (GenIDRespValidationError) Reason

func (e GenIDRespValidationError) Reason() string

Reason function returns reason value.

type UUIDClient

type UUIDClient interface {
	GenID(ctx context.Context, in *GenIDReq, opts ...grpc.CallOption) (*GenIDResp, error)
}

UUIDClient is the client API for UUID 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 MustNew

func MustNew(ctx context.Context, timeout time.Duration, r registry.Discovery) (uuidc UUIDClient)

func NewUUIDClient

func NewUUIDClient(cc grpc.ClientConnInterface) UUIDClient

type UUIDServer

type UUIDServer interface {
	GenID(context.Context, *GenIDReq) (*GenIDResp, error)
	// contains filtered or unexported methods
}

UUIDServer is the server API for UUID service. All implementations must embed UnimplementedUUIDServer for forward compatibility

type UnimplementedUUIDServer

type UnimplementedUUIDServer struct {
}

UnimplementedUUIDServer must be embedded to have forward compatible implementations.

func (UnimplementedUUIDServer) GenID

type UnsafeUUIDServer

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

UnsafeUUIDServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UUIDServer will result in compilation errors.

Jump to

Keyboard shortcuts

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