Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterBGGRngServer(s grpc.ServiceRegistrar, srv BGGRngServer)
- type BGGRngClient
- type BGGRngServer
- 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 UnimplementedBGGRngServer
- type UnsafeBGGRngServer
Constants ¶
const (
BGGRng_GetRngs_FullMethodName = "/bggrngpb.BGGRng/getRngs"
)
Variables ¶
var BGGRng_ServiceDesc = grpc.ServiceDesc{ ServiceName: "bggrngpb.BGGRng", HandlerType: (*BGGRngServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "getRngs", Handler: _BGGRng_GetRngs_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "rng.proto", }
BGGRng_ServiceDesc is the grpc.ServiceDesc for BGGRng 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 RegisterBGGRngServer ¶
func RegisterBGGRngServer(s grpc.ServiceRegistrar, srv BGGRngServer)
Types ¶
type BGGRngClient ¶
type BGGRngClient interface { // getRngs - get rngs GetRngs(ctx context.Context, in *RequestRngs, opts ...grpc.CallOption) (*ReplyRngs, error) }
BGGRngClient is the client API for BGGRng 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 NewBGGRngClient ¶
func NewBGGRngClient(cc grpc.ClientConnInterface) BGGRngClient
type BGGRngServer ¶
type BGGRngServer interface { // getRngs - get rngs GetRngs(context.Context, *RequestRngs) (*ReplyRngs, error) // contains filtered or unexported methods }
BGGRngServer is the server API for BGGRng service. All implementations must embed UnimplementedBGGRngServer 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 UnimplementedBGGRngServer ¶
type UnimplementedBGGRngServer struct { }
UnimplementedBGGRngServer must be embedded to have forward compatible implementations.
func (UnimplementedBGGRngServer) GetRngs ¶
func (UnimplementedBGGRngServer) GetRngs(context.Context, *RequestRngs) (*ReplyRngs, error)
type UnsafeBGGRngServer ¶
type UnsafeBGGRngServer interface {
// contains filtered or unexported methods
}
UnsafeBGGRngServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BGGRngServer will result in compilation errors.