dtrngpb

package
v0.10.176 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

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

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) 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 UnimplementedDTRngServer

type UnimplementedDTRngServer struct {
}

UnimplementedDTRngServer must be embedded to have forward compatible implementations.

func (UnimplementedDTRngServer) GetRngs

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.

Jump to

Keyboard shortcuts

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