Documentation ¶
Index ¶
Constants ¶
const AppID = "discovery:///uuid"
AppID .
Variables ¶
var File_api_uuid_uuid_proto protoreflect.FileDescriptor
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) ProtoMessage ¶
func (*GenIDReq) ProtoMessage()
func (*GenIDReq) ProtoReflect ¶
func (x *GenIDReq) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*GenIDResp) ProtoMessage()
func (*GenIDResp) ProtoReflect ¶
func (x *GenIDResp) ProtoReflect() protoreflect.Message
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 ¶
func (e GenIDRespValidationError) Key() bool
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 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.
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.