games

package
v0.0.0-...-26336ce Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_games_proto protoreflect.FileDescriptor
View Source
var Greeter_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "games.Greeter",
	HandlerType: (*GreeterServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "RandomTicket",
			Handler:    _Greeter_RandomTicket_Handler,
		},
		{
			MethodName: "GetIssuedUserTicketsByAgentCode",
			Handler:    _Greeter_GetIssuedUserTicketsByAgentCode_Handler,
		},
		{
			MethodName: "AssignOnceRandomIssuedTicketToThirdPartyUser",
			Handler:    _Greeter_AssignOnceRandomIssuedTicketToThirdPartyUser_Handler,
		},
		{
			MethodName: "AssignRandomIssuedTicketToThirdPartyUser",
			Handler:    _Greeter_AssignRandomIssuedTicketToThirdPartyUser_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "games.proto",
}

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

Functions

func RegisterGreeterServer

func RegisterGreeterServer(s grpc.ServiceRegistrar, srv GreeterServer)

Types

type AssignOnceRandomIssuedTicketToThirdPartyUserRequest

type AssignOnceRandomIssuedTicketToThirdPartyUserRequest struct {
	Code         string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	ThirdPartyID string `protobuf:"bytes,2,opt,name=thirdPartyID,proto3" json:"thirdPartyID,omitempty"`
	// contains filtered or unexported fields
}

func (*AssignOnceRandomIssuedTicketToThirdPartyUserRequest) Descriptor deprecated

Deprecated: Use AssignOnceRandomIssuedTicketToThirdPartyUserRequest.ProtoReflect.Descriptor instead.

func (*AssignOnceRandomIssuedTicketToThirdPartyUserRequest) GetCode

func (*AssignOnceRandomIssuedTicketToThirdPartyUserRequest) GetThirdPartyID

func (*AssignOnceRandomIssuedTicketToThirdPartyUserRequest) ProtoMessage

func (*AssignOnceRandomIssuedTicketToThirdPartyUserRequest) ProtoReflect

func (*AssignOnceRandomIssuedTicketToThirdPartyUserRequest) Reset

func (*AssignOnceRandomIssuedTicketToThirdPartyUserRequest) String

type AssignOnceRandomIssuedTicketToThirdPartyUserResponse

type AssignOnceRandomIssuedTicketToThirdPartyUserResponse struct {
	UserTicket *UserTicket `protobuf:"bytes,1,opt,name=userTicket,proto3" json:"userTicket,omitempty"`
	// contains filtered or unexported fields
}

func (*AssignOnceRandomIssuedTicketToThirdPartyUserResponse) Descriptor deprecated

Deprecated: Use AssignOnceRandomIssuedTicketToThirdPartyUserResponse.ProtoReflect.Descriptor instead.

func (*AssignOnceRandomIssuedTicketToThirdPartyUserResponse) GetUserTicket

func (*AssignOnceRandomIssuedTicketToThirdPartyUserResponse) ProtoMessage

func (*AssignOnceRandomIssuedTicketToThirdPartyUserResponse) ProtoReflect

func (*AssignOnceRandomIssuedTicketToThirdPartyUserResponse) Reset

func (*AssignOnceRandomIssuedTicketToThirdPartyUserResponse) String

type AssignRandomIssuedTicketToThirdPartyUserRequest

type AssignRandomIssuedTicketToThirdPartyUserRequest struct {
	Code         string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	ThirdPartyID string `protobuf:"bytes,2,opt,name=thirdPartyID,proto3" json:"thirdPartyID,omitempty"`
	// contains filtered or unexported fields
}

func (*AssignRandomIssuedTicketToThirdPartyUserRequest) Descriptor deprecated

Deprecated: Use AssignRandomIssuedTicketToThirdPartyUserRequest.ProtoReflect.Descriptor instead.

func (*AssignRandomIssuedTicketToThirdPartyUserRequest) GetCode

func (*AssignRandomIssuedTicketToThirdPartyUserRequest) GetThirdPartyID

func (*AssignRandomIssuedTicketToThirdPartyUserRequest) ProtoMessage

func (*AssignRandomIssuedTicketToThirdPartyUserRequest) ProtoReflect

func (*AssignRandomIssuedTicketToThirdPartyUserRequest) Reset

func (*AssignRandomIssuedTicketToThirdPartyUserRequest) String

type AssignRandomIssuedTicketToThirdPartyUserResponse

type AssignRandomIssuedTicketToThirdPartyUserResponse struct {
	UserTicket *UserTicket `protobuf:"bytes,1,opt,name=userTicket,proto3" json:"userTicket,omitempty"`
	// contains filtered or unexported fields
}

func (*AssignRandomIssuedTicketToThirdPartyUserResponse) Descriptor deprecated

Deprecated: Use AssignRandomIssuedTicketToThirdPartyUserResponse.ProtoReflect.Descriptor instead.

func (*AssignRandomIssuedTicketToThirdPartyUserResponse) GetUserTicket

func (*AssignRandomIssuedTicketToThirdPartyUserResponse) ProtoMessage

func (*AssignRandomIssuedTicketToThirdPartyUserResponse) ProtoReflect

func (*AssignRandomIssuedTicketToThirdPartyUserResponse) Reset

func (*AssignRandomIssuedTicketToThirdPartyUserResponse) String

type GetIssuedUserTicketsByAgentCodeRequest

type GetIssuedUserTicketsByAgentCodeRequest struct {
	Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	// contains filtered or unexported fields
}

func (*GetIssuedUserTicketsByAgentCodeRequest) Descriptor deprecated

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

Deprecated: Use GetIssuedUserTicketsByAgentCodeRequest.ProtoReflect.Descriptor instead.

func (*GetIssuedUserTicketsByAgentCodeRequest) GetCode

func (*GetIssuedUserTicketsByAgentCodeRequest) ProtoMessage

func (*GetIssuedUserTicketsByAgentCodeRequest) ProtoReflect

func (*GetIssuedUserTicketsByAgentCodeRequest) Reset

func (*GetIssuedUserTicketsByAgentCodeRequest) String

type GetIssuedUserTicketsByAgentCodeResponse

type GetIssuedUserTicketsByAgentCodeResponse struct {
	UserTickets []*UserTicket `protobuf:"bytes,1,rep,name=userTickets,proto3" json:"userTickets,omitempty"`
	// contains filtered or unexported fields
}

func (*GetIssuedUserTicketsByAgentCodeResponse) Descriptor deprecated

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

Deprecated: Use GetIssuedUserTicketsByAgentCodeResponse.ProtoReflect.Descriptor instead.

func (*GetIssuedUserTicketsByAgentCodeResponse) GetUserTickets

func (x *GetIssuedUserTicketsByAgentCodeResponse) GetUserTickets() []*UserTicket

func (*GetIssuedUserTicketsByAgentCodeResponse) ProtoMessage

func (*GetIssuedUserTicketsByAgentCodeResponse) ProtoReflect

func (*GetIssuedUserTicketsByAgentCodeResponse) Reset

func (*GetIssuedUserTicketsByAgentCodeResponse) String

type GreeterClient

GreeterClient is the client API for Greeter 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 NewGreeterClient

func NewGreeterClient(cc grpc.ClientConnInterface) GreeterClient

type GreeterServer

GreeterServer is the server API for Greeter service. All implementations must embed UnimplementedGreeterServer for forward compatibility

type RandomTicketRequest

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

func (*RandomTicketRequest) Descriptor deprecated

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

Deprecated: Use RandomTicketRequest.ProtoReflect.Descriptor instead.

func (*RandomTicketRequest) GetCount

func (x *RandomTicketRequest) GetCount() int64

func (*RandomTicketRequest) ProtoMessage

func (*RandomTicketRequest) ProtoMessage()

func (*RandomTicketRequest) ProtoReflect

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

func (*RandomTicketRequest) Reset

func (x *RandomTicketRequest) Reset()

func (*RandomTicketRequest) String

func (x *RandomTicketRequest) String() string

type RandomTicketResponse

type RandomTicketResponse struct {
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*RandomTicketResponse) Descriptor deprecated

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

Deprecated: Use RandomTicketResponse.ProtoReflect.Descriptor instead.

func (*RandomTicketResponse) GetMessage

func (x *RandomTicketResponse) GetMessage() string

func (*RandomTicketResponse) ProtoMessage

func (*RandomTicketResponse) ProtoMessage()

func (*RandomTicketResponse) ProtoReflect

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

func (*RandomTicketResponse) Reset

func (x *RandomTicketResponse) Reset()

func (*RandomTicketResponse) String

func (x *RandomTicketResponse) String() string

type UnimplementedGreeterServer

type UnimplementedGreeterServer struct {
}

UnimplementedGreeterServer must be embedded to have forward compatible implementations.

func (UnimplementedGreeterServer) RandomTicket

type UnsafeGreeterServer

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

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

type UserTicket

type UserTicket struct {
	Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*UserTicket) Descriptor deprecated

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

Deprecated: Use UserTicket.ProtoReflect.Descriptor instead.

func (*UserTicket) GetCode

func (x *UserTicket) GetCode() string

func (*UserTicket) GetName

func (x *UserTicket) GetName() string

func (*UserTicket) ProtoMessage

func (*UserTicket) ProtoMessage()

func (*UserTicket) ProtoReflect

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

func (*UserTicket) Reset

func (x *UserTicket) Reset()

func (*UserTicket) String

func (x *UserTicket) String() string

Jump to

Keyboard shortcuts

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