server

package
v0.0.0-...-a89b842 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2018 License: MIT Imports: 22 Imported by: 0

Documentation

Overview

Package server is a generated protocol buffer package.

It is generated from these files:

webui/server/play_service.proto

It has these top-level messages:

NewGameRequest

Package server is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterApiHandlers

func RegisterApiHandlers()

func RegisterPlayServiceHandler

func RegisterPlayServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterPlayServiceHandler registers the http handlers for service PlayService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterPlayServiceHandlerClient

func RegisterPlayServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PlayServiceClient) error

RegisterPlayServiceHandler registers the http handlers for service PlayService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "PlayServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "PlayServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "PlayServiceClient" to call the correct interceptors.

func RegisterPlayServiceHandlerFromEndpoint

func RegisterPlayServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterPlayServiceHandlerFromEndpoint is same as RegisterPlayServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterPlayServiceServer

func RegisterPlayServiceServer(s *grpc.Server, srv PlayServiceServer)

func RegisterUiHandlers

func RegisterUiHandlers()

Types

type NewGameRequest

type NewGameRequest struct {
}

func (*NewGameRequest) Descriptor

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

func (*NewGameRequest) ProtoMessage

func (*NewGameRequest) ProtoMessage()

func (*NewGameRequest) Reset

func (m *NewGameRequest) Reset()

func (*NewGameRequest) String

func (m *NewGameRequest) String() string

type PlayServiceClient

type PlayServiceClient interface {
	NewGame(ctx context.Context, in *NewGameRequest, opts ...grpc.CallOption) (*kitchensink_solitaire_model.GameState, error)
}

func NewPlayServiceClient

func NewPlayServiceClient(cc *grpc.ClientConn) PlayServiceClient

type PlayServiceImpl

type PlayServiceImpl struct {
}

func (*PlayServiceImpl) NewGame

func (ps *PlayServiceImpl) NewGame(ctx context.Context, ngr *NewGameRequest) (gs *model.GameState, err error)

type PlayServiceServer

type PlayServiceServer interface {
	NewGame(context.Context, *NewGameRequest) (*kitchensink_solitaire_model.GameState, error)
}

Jump to

Keyboard shortcuts

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