Documentation
¶
Index ¶
- type PandoraServiceClient
- func (c *PandoraServiceClient) CloseConnection()
- func (c *PandoraServiceClient) SendGuessRequest(level uint32, guess int64) (*pandoraproto.GuessNumberResponse, error)
- func (c *PandoraServiceClient) SendOpenBoxRequest(lockedPandoraBox *pandoraproto.LockedPandoraBox) (*pandoraproto.OpenedPandoraBox, error)
- type PandoraServiceServer
- func (s *PandoraServiceServer) GuessNumber(ctx context.Context, req *pandoraproto.GuessNumberRequest) (*pandoraproto.GuessNumberResponse, error)
- func (s *PandoraServiceServer) OpenBox(ctx context.Context, req *pandoraproto.LockedPandoraBox) (*pandoraproto.OpenedPandoraBox, error)
- func (s *PandoraServiceServer) Start() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PandoraServiceClient ¶
type PandoraServiceClient struct { pandoraproto.PandoraServiceClient // contains filtered or unexported fields }
func NewPandoraServiceClient ¶
func NewPandoraServiceClient() (*PandoraServiceClient, error)
func (*PandoraServiceClient) CloseConnection ¶
func (c *PandoraServiceClient) CloseConnection()
func (*PandoraServiceClient) SendGuessRequest ¶ added in v1.2.3
func (c *PandoraServiceClient) SendGuessRequest(level uint32, guess int64) (*pandoraproto.GuessNumberResponse, error)
func (*PandoraServiceClient) SendOpenBoxRequest ¶ added in v1.2.3
func (c *PandoraServiceClient) SendOpenBoxRequest(lockedPandoraBox *pandoraproto.LockedPandoraBox) (*pandoraproto.OpenedPandoraBox, error)
type PandoraServiceServer ¶
type PandoraServiceServer struct { pandoraproto.UnimplementedPandoraServiceServer // contains filtered or unexported fields }
func NewPandoraServiceServer ¶
func NewPandoraServiceServer() *PandoraServiceServer
func (*PandoraServiceServer) GuessNumber ¶
func (s *PandoraServiceServer) GuessNumber(ctx context.Context, req *pandoraproto.GuessNumberRequest) (*pandoraproto.GuessNumberResponse, error)
func (*PandoraServiceServer) OpenBox ¶
func (s *PandoraServiceServer) OpenBox(ctx context.Context, req *pandoraproto.LockedPandoraBox) (*pandoraproto.OpenedPandoraBox, error)
func (*PandoraServiceServer) Start ¶
func (s *PandoraServiceServer) Start() error
Click to show internal directories.
Click to hide internal directories.