servicev1

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const OperationSrvUuidV1NextID = "/saas.api.uuid.servicev1.SrvUuidV1/NextID"
View Source
const (
	SrvUuidV1_NextID_FullMethodName = "/saas.api.uuid.servicev1.SrvUuidV1/NextID"
)

Variables

View Source
var File_api_uuid_service_v1_services_uuid_service_v1_proto protoreflect.FileDescriptor
View Source
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

type SrvUuidV1HTTPServer

type SrvUuidV1HTTPServer interface {
	// NextID 获取ID
	NextID(context.Context, *resources.NextIDReq) (*resources.NextIDResp, error)
}

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

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.

Jump to

Keyboard shortcuts

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