gamezoppb

package
v0.0.0-...-7605a98 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package gamezoppb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterGamezopServiceHandler

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

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

func RegisterGamezopServiceHandlerClient

func RegisterGamezopServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client GamezopServiceClient) error

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

func RegisterGamezopServiceHandlerFromEndpoint

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

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

func RegisterGamezopServiceServer

func RegisterGamezopServiceServer(s *grpc.Server, srv GamezopServiceServer)

Types

type Empty

type Empty struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Empty) Descriptor

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

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (m *Empty) Reset()

func (*Empty) String

func (m *Empty) String() string

func (*Empty) XXX_DiscardUnknown

func (m *Empty) XXX_DiscardUnknown()

func (*Empty) XXX_Marshal

func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Empty) XXX_Merge

func (m *Empty) XXX_Merge(src proto.Message)

func (*Empty) XXX_Size

func (m *Empty) XXX_Size() int

func (*Empty) XXX_Unmarshal

func (m *Empty) XXX_Unmarshal(b []byte) error

type GamezopRequest

type GamezopRequest struct {
	PlayerName           string   `protobuf:"bytes,1,opt,name=player_name,json=playerName,proto3" json:"player_name,omitempty"`
	Email                string   `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GamezopRequest) Descriptor

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

func (*GamezopRequest) GetEmail

func (m *GamezopRequest) GetEmail() string

func (*GamezopRequest) GetPlayerName

func (m *GamezopRequest) GetPlayerName() string

func (*GamezopRequest) ProtoMessage

func (*GamezopRequest) ProtoMessage()

func (*GamezopRequest) Reset

func (m *GamezopRequest) Reset()

func (*GamezopRequest) String

func (m *GamezopRequest) String() string

func (*GamezopRequest) XXX_DiscardUnknown

func (m *GamezopRequest) XXX_DiscardUnknown()

func (*GamezopRequest) XXX_Marshal

func (m *GamezopRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GamezopRequest) XXX_Merge

func (m *GamezopRequest) XXX_Merge(src proto.Message)

func (*GamezopRequest) XXX_Size

func (m *GamezopRequest) XXX_Size() int

func (*GamezopRequest) XXX_Unmarshal

func (m *GamezopRequest) XXX_Unmarshal(b []byte) error

type GamezopResponse

type GamezopResponse struct {
	Message              string   `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	Code                 int32    `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"`
	Data                 string   `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GamezopResponse) Descriptor

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

func (*GamezopResponse) GetCode

func (m *GamezopResponse) GetCode() int32

func (*GamezopResponse) GetData

func (m *GamezopResponse) GetData() string

func (*GamezopResponse) GetMessage

func (m *GamezopResponse) GetMessage() string

func (*GamezopResponse) ProtoMessage

func (*GamezopResponse) ProtoMessage()

func (*GamezopResponse) Reset

func (m *GamezopResponse) Reset()

func (*GamezopResponse) String

func (m *GamezopResponse) String() string

func (*GamezopResponse) XXX_DiscardUnknown

func (m *GamezopResponse) XXX_DiscardUnknown()

func (*GamezopResponse) XXX_Marshal

func (m *GamezopResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GamezopResponse) XXX_Merge

func (m *GamezopResponse) XXX_Merge(src proto.Message)

func (*GamezopResponse) XXX_Size

func (m *GamezopResponse) XXX_Size() int

func (*GamezopResponse) XXX_Unmarshal

func (m *GamezopResponse) XXX_Unmarshal(b []byte) error

type GamezopServiceClient

type GamezopServiceClient interface {
	PlayGameService(ctx context.Context, in *GamezopRequest, opts ...grpc.CallOption) (*GamezopResponse, error)
	// Get all players details
	GetPlayersDetailsService(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*GamezopResponse, error)
}

GamezopServiceClient is the client API for GamezopService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewGamezopServiceClient

func NewGamezopServiceClient(cc *grpc.ClientConn) GamezopServiceClient

type GamezopServiceServer

type GamezopServiceServer interface {
	PlayGameService(context.Context, *GamezopRequest) (*GamezopResponse, error)
	// Get all players details
	GetPlayersDetailsService(context.Context, *Empty) (*GamezopResponse, error)
}

GamezopServiceServer is the server API for GamezopService service.

Jump to

Keyboard shortcuts

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