Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterSrvUuidV1HTTPServer(s *http.Server, srv SrvUuidV1HTTPServer)
- func RegisterSrvUuidV1Server(s grpc.ServiceRegistrar, srv SrvUuidV1Server)
- type SrvUuidV1Client
- type SrvUuidV1HTTPClient
- type SrvUuidV1HTTPClientImpl
- type SrvUuidV1HTTPServer
- type SrvUuidV1Server
- type UnimplementedSrvUuidV1Server
- type UnsafeSrvUuidV1Server
Constants ¶
const OperationSrvUuidV1NextID = "/saas.api.uuid.servicev1.SrvUuidV1/NextID"
const (
SrvUuidV1_NextID_FullMethodName = "/saas.api.uuid.servicev1.SrvUuidV1/NextID"
)
Variables ¶
var File_api_uuid_service_v1_services_uuid_service_v1_proto protoreflect.FileDescriptor
var SrvUuidV1_ServiceDesc = grpc.ServiceDesc{ ServiceName: "saas.api.uuid.servicev1.SrvUuidV1", HandlerType: (*SrvUuidV1Server)(nil), Methods: []grpc.MethodDesc{ { MethodName: "NextID", Handler: _SrvUuidV1_NextID_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/uuid-service/v1/services/uuid.service.v1.proto", }
SrvUuidV1_ServiceDesc is the grpc.ServiceDesc for SrvUuidV1 service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSrvUuidV1HTTPServer ¶
func RegisterSrvUuidV1HTTPServer(s *http.Server, srv SrvUuidV1HTTPServer)
func RegisterSrvUuidV1Server ¶
func RegisterSrvUuidV1Server(s grpc.ServiceRegistrar, srv SrvUuidV1Server)
Types ¶
type SrvUuidV1Client ¶
type SrvUuidV1Client interface { // 获取ID NextID(ctx context.Context, in *resources.NextIDReq, opts ...grpc.CallOption) (*resources.NextIDResp, error) }
SrvUuidV1Client is the client API for SrvUuidV1 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 NewSrvUuidV1Client ¶
func NewSrvUuidV1Client(cc grpc.ClientConnInterface) SrvUuidV1Client
type SrvUuidV1HTTPClient ¶
type SrvUuidV1HTTPClient interface {
NextID(ctx context.Context, req *resources.NextIDReq, opts ...http.CallOption) (rsp *resources.NextIDResp, err error)
}
func NewSrvUuidV1HTTPClient ¶
func NewSrvUuidV1HTTPClient(client *http.Client) SrvUuidV1HTTPClient
type SrvUuidV1HTTPClientImpl ¶
type SrvUuidV1HTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*SrvUuidV1HTTPClientImpl) NextID ¶
func (c *SrvUuidV1HTTPClientImpl) NextID(ctx context.Context, in *resources.NextIDReq, opts ...http.CallOption) (*resources.NextIDResp, error)
type SrvUuidV1HTTPServer ¶
type SrvUuidV1Server ¶
type SrvUuidV1Server interface { // 获取ID NextID(context.Context, *resources.NextIDReq) (*resources.NextIDResp, error) // contains filtered or unexported methods }
SrvUuidV1Server is the server API for SrvUuidV1 service. All implementations must embed UnimplementedSrvUuidV1Server for forward compatibility
type UnimplementedSrvUuidV1Server ¶
type UnimplementedSrvUuidV1Server struct { }
UnimplementedSrvUuidV1Server must be embedded to have forward compatible implementations.
func (UnimplementedSrvUuidV1Server) NextID ¶
func (UnimplementedSrvUuidV1Server) NextID(context.Context, *resources.NextIDReq) (*resources.NextIDResp, error)
type UnsafeSrvUuidV1Server ¶
type UnsafeSrvUuidV1Server interface {
// contains filtered or unexported methods
}
UnsafeSrvUuidV1Server may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SrvUuidV1Server will result in compilation errors.