Documentation ¶
Index ¶
- Variables
- func RegisterGreeterServer(s grpc.ServiceRegistrar, srv GreeterServer)
- type AssignOnceRandomIssuedTicketToThirdPartyUserRequest
- func (*AssignOnceRandomIssuedTicketToThirdPartyUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AssignOnceRandomIssuedTicketToThirdPartyUserRequest) GetCode() string
- func (x *AssignOnceRandomIssuedTicketToThirdPartyUserRequest) GetThirdPartyID() string
- func (*AssignOnceRandomIssuedTicketToThirdPartyUserRequest) ProtoMessage()
- func (x *AssignOnceRandomIssuedTicketToThirdPartyUserRequest) ProtoReflect() protoreflect.Message
- func (x *AssignOnceRandomIssuedTicketToThirdPartyUserRequest) Reset()
- func (x *AssignOnceRandomIssuedTicketToThirdPartyUserRequest) String() string
- type AssignOnceRandomIssuedTicketToThirdPartyUserResponse
- func (*AssignOnceRandomIssuedTicketToThirdPartyUserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AssignOnceRandomIssuedTicketToThirdPartyUserResponse) GetUserTicket() *UserTicket
- func (*AssignOnceRandomIssuedTicketToThirdPartyUserResponse) ProtoMessage()
- func (x *AssignOnceRandomIssuedTicketToThirdPartyUserResponse) ProtoReflect() protoreflect.Message
- func (x *AssignOnceRandomIssuedTicketToThirdPartyUserResponse) Reset()
- func (x *AssignOnceRandomIssuedTicketToThirdPartyUserResponse) String() string
- type AssignRandomIssuedTicketToThirdPartyUserRequest
- func (*AssignRandomIssuedTicketToThirdPartyUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AssignRandomIssuedTicketToThirdPartyUserRequest) GetCode() string
- func (x *AssignRandomIssuedTicketToThirdPartyUserRequest) GetThirdPartyID() string
- func (*AssignRandomIssuedTicketToThirdPartyUserRequest) ProtoMessage()
- func (x *AssignRandomIssuedTicketToThirdPartyUserRequest) ProtoReflect() protoreflect.Message
- func (x *AssignRandomIssuedTicketToThirdPartyUserRequest) Reset()
- func (x *AssignRandomIssuedTicketToThirdPartyUserRequest) String() string
- type AssignRandomIssuedTicketToThirdPartyUserResponse
- func (*AssignRandomIssuedTicketToThirdPartyUserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AssignRandomIssuedTicketToThirdPartyUserResponse) GetUserTicket() *UserTicket
- func (*AssignRandomIssuedTicketToThirdPartyUserResponse) ProtoMessage()
- func (x *AssignRandomIssuedTicketToThirdPartyUserResponse) ProtoReflect() protoreflect.Message
- func (x *AssignRandomIssuedTicketToThirdPartyUserResponse) Reset()
- func (x *AssignRandomIssuedTicketToThirdPartyUserResponse) String() string
- type GetIssuedUserTicketsByAgentCodeRequest
- func (*GetIssuedUserTicketsByAgentCodeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetIssuedUserTicketsByAgentCodeRequest) GetCode() string
- func (*GetIssuedUserTicketsByAgentCodeRequest) ProtoMessage()
- func (x *GetIssuedUserTicketsByAgentCodeRequest) ProtoReflect() protoreflect.Message
- func (x *GetIssuedUserTicketsByAgentCodeRequest) Reset()
- func (x *GetIssuedUserTicketsByAgentCodeRequest) String() string
- type GetIssuedUserTicketsByAgentCodeResponse
- func (*GetIssuedUserTicketsByAgentCodeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetIssuedUserTicketsByAgentCodeResponse) GetUserTickets() []*UserTicket
- func (*GetIssuedUserTicketsByAgentCodeResponse) ProtoMessage()
- func (x *GetIssuedUserTicketsByAgentCodeResponse) ProtoReflect() protoreflect.Message
- func (x *GetIssuedUserTicketsByAgentCodeResponse) Reset()
- func (x *GetIssuedUserTicketsByAgentCodeResponse) String() string
- type GreeterClient
- type GreeterServer
- type RandomTicketRequest
- func (*RandomTicketRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RandomTicketRequest) GetCount() int64
- func (*RandomTicketRequest) ProtoMessage()
- func (x *RandomTicketRequest) ProtoReflect() protoreflect.Message
- func (x *RandomTicketRequest) Reset()
- func (x *RandomTicketRequest) String() string
- type RandomTicketResponse
- func (*RandomTicketResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RandomTicketResponse) GetMessage() string
- func (*RandomTicketResponse) ProtoMessage()
- func (x *RandomTicketResponse) ProtoReflect() protoreflect.Message
- func (x *RandomTicketResponse) Reset()
- func (x *RandomTicketResponse) String() string
- type UnimplementedGreeterServer
- func (UnimplementedGreeterServer) AssignOnceRandomIssuedTicketToThirdPartyUser(context.Context, *AssignOnceRandomIssuedTicketToThirdPartyUserRequest) (*AssignOnceRandomIssuedTicketToThirdPartyUserResponse, error)
- func (UnimplementedGreeterServer) AssignRandomIssuedTicketToThirdPartyUser(context.Context, *AssignRandomIssuedTicketToThirdPartyUserRequest) (*AssignRandomIssuedTicketToThirdPartyUserResponse, error)
- func (UnimplementedGreeterServer) GetIssuedUserTicketsByAgentCode(context.Context, *GetIssuedUserTicketsByAgentCodeRequest) (*GetIssuedUserTicketsByAgentCodeResponse, error)
- func (UnimplementedGreeterServer) RandomTicket(context.Context, *RandomTicketRequest) (*RandomTicketResponse, error)
- type UnsafeGreeterServer
- type UserTicket
Constants ¶
This section is empty.
Variables ¶
var File_games_proto protoreflect.FileDescriptor
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
func (*AssignOnceRandomIssuedTicketToThirdPartyUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use AssignOnceRandomIssuedTicketToThirdPartyUserRequest.ProtoReflect.Descriptor instead.
func (*AssignOnceRandomIssuedTicketToThirdPartyUserRequest) GetCode ¶
func (x *AssignOnceRandomIssuedTicketToThirdPartyUserRequest) GetCode() string
func (*AssignOnceRandomIssuedTicketToThirdPartyUserRequest) GetThirdPartyID ¶
func (x *AssignOnceRandomIssuedTicketToThirdPartyUserRequest) GetThirdPartyID() string
func (*AssignOnceRandomIssuedTicketToThirdPartyUserRequest) ProtoMessage ¶
func (*AssignOnceRandomIssuedTicketToThirdPartyUserRequest) ProtoMessage()
func (*AssignOnceRandomIssuedTicketToThirdPartyUserRequest) ProtoReflect ¶
func (x *AssignOnceRandomIssuedTicketToThirdPartyUserRequest) ProtoReflect() protoreflect.Message
func (*AssignOnceRandomIssuedTicketToThirdPartyUserRequest) Reset ¶
func (x *AssignOnceRandomIssuedTicketToThirdPartyUserRequest) Reset()
func (*AssignOnceRandomIssuedTicketToThirdPartyUserRequest) String ¶
func (x *AssignOnceRandomIssuedTicketToThirdPartyUserRequest) String() 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
func (*AssignOnceRandomIssuedTicketToThirdPartyUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use AssignOnceRandomIssuedTicketToThirdPartyUserResponse.ProtoReflect.Descriptor instead.
func (*AssignOnceRandomIssuedTicketToThirdPartyUserResponse) GetUserTicket ¶
func (x *AssignOnceRandomIssuedTicketToThirdPartyUserResponse) GetUserTicket() *UserTicket
func (*AssignOnceRandomIssuedTicketToThirdPartyUserResponse) ProtoMessage ¶
func (*AssignOnceRandomIssuedTicketToThirdPartyUserResponse) ProtoMessage()
func (*AssignOnceRandomIssuedTicketToThirdPartyUserResponse) ProtoReflect ¶
func (x *AssignOnceRandomIssuedTicketToThirdPartyUserResponse) ProtoReflect() protoreflect.Message
func (*AssignOnceRandomIssuedTicketToThirdPartyUserResponse) Reset ¶
func (x *AssignOnceRandomIssuedTicketToThirdPartyUserResponse) Reset()
func (*AssignOnceRandomIssuedTicketToThirdPartyUserResponse) String ¶
func (x *AssignOnceRandomIssuedTicketToThirdPartyUserResponse) String() 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
func (*AssignRandomIssuedTicketToThirdPartyUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use AssignRandomIssuedTicketToThirdPartyUserRequest.ProtoReflect.Descriptor instead.
func (*AssignRandomIssuedTicketToThirdPartyUserRequest) GetCode ¶
func (x *AssignRandomIssuedTicketToThirdPartyUserRequest) GetCode() string
func (*AssignRandomIssuedTicketToThirdPartyUserRequest) GetThirdPartyID ¶
func (x *AssignRandomIssuedTicketToThirdPartyUserRequest) GetThirdPartyID() string
func (*AssignRandomIssuedTicketToThirdPartyUserRequest) ProtoMessage ¶
func (*AssignRandomIssuedTicketToThirdPartyUserRequest) ProtoMessage()
func (*AssignRandomIssuedTicketToThirdPartyUserRequest) ProtoReflect ¶
func (x *AssignRandomIssuedTicketToThirdPartyUserRequest) ProtoReflect() protoreflect.Message
func (*AssignRandomIssuedTicketToThirdPartyUserRequest) Reset ¶
func (x *AssignRandomIssuedTicketToThirdPartyUserRequest) Reset()
func (*AssignRandomIssuedTicketToThirdPartyUserRequest) String ¶
func (x *AssignRandomIssuedTicketToThirdPartyUserRequest) String() 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
func (*AssignRandomIssuedTicketToThirdPartyUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use AssignRandomIssuedTicketToThirdPartyUserResponse.ProtoReflect.Descriptor instead.
func (*AssignRandomIssuedTicketToThirdPartyUserResponse) GetUserTicket ¶
func (x *AssignRandomIssuedTicketToThirdPartyUserResponse) GetUserTicket() *UserTicket
func (*AssignRandomIssuedTicketToThirdPartyUserResponse) ProtoMessage ¶
func (*AssignRandomIssuedTicketToThirdPartyUserResponse) ProtoMessage()
func (*AssignRandomIssuedTicketToThirdPartyUserResponse) ProtoReflect ¶
func (x *AssignRandomIssuedTicketToThirdPartyUserResponse) ProtoReflect() protoreflect.Message
func (*AssignRandomIssuedTicketToThirdPartyUserResponse) Reset ¶
func (x *AssignRandomIssuedTicketToThirdPartyUserResponse) Reset()
func (*AssignRandomIssuedTicketToThirdPartyUserResponse) String ¶
func (x *AssignRandomIssuedTicketToThirdPartyUserResponse) String() 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 (x *GetIssuedUserTicketsByAgentCodeRequest) GetCode() string
func (*GetIssuedUserTicketsByAgentCodeRequest) ProtoMessage ¶
func (*GetIssuedUserTicketsByAgentCodeRequest) ProtoMessage()
func (*GetIssuedUserTicketsByAgentCodeRequest) ProtoReflect ¶
func (x *GetIssuedUserTicketsByAgentCodeRequest) ProtoReflect() protoreflect.Message
func (*GetIssuedUserTicketsByAgentCodeRequest) Reset ¶
func (x *GetIssuedUserTicketsByAgentCodeRequest) Reset()
func (*GetIssuedUserTicketsByAgentCodeRequest) String ¶
func (x *GetIssuedUserTicketsByAgentCodeRequest) String() 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) ProtoMessage()
func (*GetIssuedUserTicketsByAgentCodeResponse) ProtoReflect ¶
func (x *GetIssuedUserTicketsByAgentCodeResponse) ProtoReflect() protoreflect.Message
func (*GetIssuedUserTicketsByAgentCodeResponse) Reset ¶
func (x *GetIssuedUserTicketsByAgentCodeResponse) Reset()
func (*GetIssuedUserTicketsByAgentCodeResponse) String ¶
func (x *GetIssuedUserTicketsByAgentCodeResponse) String() string
type GreeterClient ¶
type GreeterClient interface { RandomTicket(ctx context.Context, in *RandomTicketRequest, opts ...grpc.CallOption) (*RandomTicketResponse, error) GetIssuedUserTicketsByAgentCode(ctx context.Context, in *GetIssuedUserTicketsByAgentCodeRequest, opts ...grpc.CallOption) (*GetIssuedUserTicketsByAgentCodeResponse, error) AssignOnceRandomIssuedTicketToThirdPartyUser(ctx context.Context, in *AssignOnceRandomIssuedTicketToThirdPartyUserRequest, opts ...grpc.CallOption) (*AssignOnceRandomIssuedTicketToThirdPartyUserResponse, error) AssignRandomIssuedTicketToThirdPartyUser(ctx context.Context, in *AssignRandomIssuedTicketToThirdPartyUserRequest, opts ...grpc.CallOption) (*AssignRandomIssuedTicketToThirdPartyUserResponse, error) }
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 ¶
type GreeterServer interface { RandomTicket(context.Context, *RandomTicketRequest) (*RandomTicketResponse, error) GetIssuedUserTicketsByAgentCode(context.Context, *GetIssuedUserTicketsByAgentCodeRequest) (*GetIssuedUserTicketsByAgentCodeResponse, error) AssignOnceRandomIssuedTicketToThirdPartyUser(context.Context, *AssignOnceRandomIssuedTicketToThirdPartyUserRequest) (*AssignOnceRandomIssuedTicketToThirdPartyUserResponse, error) AssignRandomIssuedTicketToThirdPartyUser(context.Context, *AssignRandomIssuedTicketToThirdPartyUserRequest) (*AssignRandomIssuedTicketToThirdPartyUserResponse, error) // contains filtered or unexported methods }
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) AssignOnceRandomIssuedTicketToThirdPartyUser ¶
func (UnimplementedGreeterServer) AssignOnceRandomIssuedTicketToThirdPartyUser(context.Context, *AssignOnceRandomIssuedTicketToThirdPartyUserRequest) (*AssignOnceRandomIssuedTicketToThirdPartyUserResponse, error)
func (UnimplementedGreeterServer) AssignRandomIssuedTicketToThirdPartyUser ¶
func (UnimplementedGreeterServer) AssignRandomIssuedTicketToThirdPartyUser(context.Context, *AssignRandomIssuedTicketToThirdPartyUserRequest) (*AssignRandomIssuedTicketToThirdPartyUserResponse, error)
func (UnimplementedGreeterServer) GetIssuedUserTicketsByAgentCode ¶
func (UnimplementedGreeterServer) GetIssuedUserTicketsByAgentCode(context.Context, *GetIssuedUserTicketsByAgentCodeRequest) (*GetIssuedUserTicketsByAgentCodeResponse, error)
func (UnimplementedGreeterServer) RandomTicket ¶
func (UnimplementedGreeterServer) RandomTicket(context.Context, *RandomTicketRequest) (*RandomTicketResponse, error)
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