bggrngpb

package
v0.10.313 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BGGRng_GetRngs_FullMethodName = "/bggrngpb.BGGRng/getRngs"
)

Variables

View Source
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)

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) Descriptor() ([]byte, []int)

Deprecated: Use ReplyRngs.ProtoReflect.Descriptor instead.

func (*ReplyRngs) GetRngs

func (x *ReplyRngs) GetRngs() []uint32

func (*ReplyRngs) ProtoMessage

func (*ReplyRngs) ProtoMessage()

func (*ReplyRngs) ProtoReflect

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

func (*ReplyRngs) Reset

func (x *ReplyRngs) Reset()

func (*ReplyRngs) String

func (x *ReplyRngs) String() string

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

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.

Jump to

Keyboard shortcuts

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