distributeid

package
v0.0.0-...-a4da07a Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DistributeId_GenerateIds_FullMethodName = "/distributeid.DistributeId/GenerateIds"
)

Variables

View Source
var DistributeId_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "distributeid.DistributeId",
	HandlerType: (*DistributeIdServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GenerateIds",
			Handler:    _DistributeId_GenerateIds_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "distributeid.proto",
}

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

View Source
var File_distributeid_proto protoreflect.FileDescriptor

Functions

func RegisterDistributeIdServer

func RegisterDistributeIdServer(s grpc.ServiceRegistrar, srv DistributeIdServer)

Types

type DistributeIdClient

type DistributeIdClient interface {
	GenerateIds(ctx context.Context, in *GetDistributeIdReq, opts ...grpc.CallOption) (*GetDistributeIdRsp, error)
}

DistributeIdClient is the client API for DistributeId 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 DistributeIdServer

type DistributeIdServer interface {
	GenerateIds(context.Context, *GetDistributeIdReq) (*GetDistributeIdRsp, error)
	// contains filtered or unexported methods
}

DistributeIdServer is the server API for DistributeId service. All implementations must embed UnimplementedDistributeIdServer for forward compatibility

type GetDistributeIdReq

type GetDistributeIdReq struct {
	Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDistributeIdReq) Descriptor deprecated

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

Deprecated: Use GetDistributeIdReq.ProtoReflect.Descriptor instead.

func (*GetDistributeIdReq) GetCount

func (x *GetDistributeIdReq) GetCount() int32

func (*GetDistributeIdReq) ProtoMessage

func (*GetDistributeIdReq) ProtoMessage()

func (*GetDistributeIdReq) ProtoReflect

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

func (*GetDistributeIdReq) Reset

func (x *GetDistributeIdReq) Reset()

func (*GetDistributeIdReq) String

func (x *GetDistributeIdReq) String() string

type GetDistributeIdRsp

type GetDistributeIdRsp struct {
	Ids []int64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDistributeIdRsp) Descriptor deprecated

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

Deprecated: Use GetDistributeIdRsp.ProtoReflect.Descriptor instead.

func (*GetDistributeIdRsp) GetIds

func (x *GetDistributeIdRsp) GetIds() []int64

func (*GetDistributeIdRsp) ProtoMessage

func (*GetDistributeIdRsp) ProtoMessage()

func (*GetDistributeIdRsp) ProtoReflect

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

func (*GetDistributeIdRsp) Reset

func (x *GetDistributeIdRsp) Reset()

func (*GetDistributeIdRsp) String

func (x *GetDistributeIdRsp) String() string

type UnimplementedDistributeIdServer

type UnimplementedDistributeIdServer struct {
}

UnimplementedDistributeIdServer must be embedded to have forward compatible implementations.

func (UnimplementedDistributeIdServer) GenerateIds

type UnsafeDistributeIdServer

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

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

Jump to

Keyboard shortcuts

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