Documentation ¶
Index ¶
- Variables
- func RegisterDTRngServer(s grpc.ServiceRegistrar, srv DTRngServer)
- type DTRngClient
- type DTRngServer
- type ReplyRngs
- type RequestRngs
- func (*RequestRngs) Descriptor() ([]byte, []int)deprecated
- func (x *RequestRngs) GetGamecode() string
- func (x *RequestRngs) GetNums() int32
- func (*RequestRngs) ProtoMessage()
- func (x *RequestRngs) ProtoReflect() protoreflect.Message
- func (x *RequestRngs) Reset()
- func (x *RequestRngs) String() string
- type UnimplementedDTRngServer
- type UnsafeDTRngServer
Constants ¶
This section is empty.
Variables ¶
var DTRng_ServiceDesc = grpc.ServiceDesc{ ServiceName: "dtrngpb.DTRng", HandlerType: (*DTRngServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "getRngs", Handler: _DTRng_GetRngs_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "rng.proto", }
DTRng_ServiceDesc is the grpc.ServiceDesc for DTRng service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_rng_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDTRngServer ¶
func RegisterDTRngServer(s grpc.ServiceRegistrar, srv DTRngServer)
Types ¶
type DTRngClient ¶
type DTRngClient interface { // getRngs - get rngs GetRngs(ctx context.Context, in *RequestRngs, opts ...grpc.CallOption) (*ReplyRngs, error) }
DTRngClient is the client API for DTRng 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 NewDTRngClient ¶
func NewDTRngClient(cc grpc.ClientConnInterface) DTRngClient
type DTRngServer ¶
type DTRngServer interface { // getRngs - get rngs GetRngs(context.Context, *RequestRngs) (*ReplyRngs, error) // contains filtered or unexported methods }
DTRngServer is the server API for DTRng service. All implementations must embed UnimplementedDTRngServer for forward compatibility
type ReplyRngs ¶
type ReplyRngs struct { Rngs []uint32 `protobuf:"varint,1,rep,packed,name=rngs,proto3" json:"rngs,omitempty"` // contains filtered or unexported fields }
ReplyRngs - reply rngs
func (*ReplyRngs) Descriptor
deprecated
func (*ReplyRngs) ProtoMessage ¶
func (*ReplyRngs) ProtoMessage()
func (*ReplyRngs) ProtoReflect ¶
func (x *ReplyRngs) ProtoReflect() protoreflect.Message
type RequestRngs ¶
type RequestRngs struct { Nums int32 `protobuf:"varint,1,opt,name=nums,proto3" json:"nums,omitempty"` Gamecode string `protobuf:"bytes,2,opt,name=gamecode,proto3" json:"gamecode,omitempty"` // contains filtered or unexported fields }
RequestRngs - request some rngs
func (*RequestRngs) Descriptor
deprecated
func (*RequestRngs) Descriptor() ([]byte, []int)
Deprecated: Use RequestRngs.ProtoReflect.Descriptor instead.
func (*RequestRngs) GetGamecode ¶
func (x *RequestRngs) GetGamecode() string
func (*RequestRngs) GetNums ¶
func (x *RequestRngs) GetNums() int32
func (*RequestRngs) ProtoMessage ¶
func (*RequestRngs) ProtoMessage()
func (*RequestRngs) ProtoReflect ¶
func (x *RequestRngs) ProtoReflect() protoreflect.Message
func (*RequestRngs) Reset ¶
func (x *RequestRngs) Reset()
func (*RequestRngs) String ¶
func (x *RequestRngs) String() string
type UnimplementedDTRngServer ¶
type UnimplementedDTRngServer struct { }
UnimplementedDTRngServer must be embedded to have forward compatible implementations.
func (UnimplementedDTRngServer) GetRngs ¶
func (UnimplementedDTRngServer) GetRngs(context.Context, *RequestRngs) (*ReplyRngs, error)
type UnsafeDTRngServer ¶
type UnsafeDTRngServer interface {
// contains filtered or unexported methods
}
UnsafeDTRngServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DTRngServer will result in compilation errors.