tcpGameServer

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: MIT Imports: 16 Imported by: 1

Documentation

Overview

GENERATED BY 'T'ransport 'G'enerator. DO NOT EDIT.

GENERATED BY 'T'ransport 'G'enerator. DO NOT EDIT.

GENERATED BY 'T'ransport 'G'enerator. DO NOT EDIT.

GENERATED BY 'T'ransport 'G'enerator. DO NOT EDIT.

GENERATED BY 'T'ransport 'G'enerator. DO NOT EDIT.

GENERATED BY 'T'ransport 'G'enerator. DO NOT EDIT.

GENERATED BY 'T'ransport 'G'enerator. DO NOT EDIT.

GENERATED BY 'T'ransport 'G'enerator. DO NOT EDIT.

GENERATED BY 'T'ransport 'G'enerator. DO NOT EDIT.

GENERATED BY 'T'ransport 'G'enerator. DO NOT EDIT.

GENERATED BY 'T'ransport 'G'enerator. DO NOT EDIT.

GENERATED BY 'T'ransport 'G'enerator. DO NOT EDIT.

GENERATED BY 'T'ransport 'G'enerator. DO NOT EDIT.

Index

Constants

View Source
const VersionTg = "v2.3.49"

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientGameConnections

type ClientGameConnections struct {
	*ClientJsonRPC
}

func (*ClientGameConnections) GetMessage

func (cli *ClientGameConnections) GetMessage(ctx context.Context, token string) (messages types.ResponseGetMessage, err error)

func (*ClientGameConnections) RemoveUser

func (cli *ClientGameConnections) RemoveUser(ctx context.Context, token string, userID uuid.UUID) (err error)

func (*ClientGameConnections) ReqGetMessage

func (cli *ClientGameConnections) ReqGetMessage(ctx context.Context, callback retGameConnectionsGetMessage, token string) (request RequestRPC)

func (*ClientGameConnections) ReqRemoveUser

func (cli *ClientGameConnections) ReqRemoveUser(ctx context.Context, callback retGameConnectionsRemoveUser, token string, userID uuid.UUID) (request RequestRPC)

func (*ClientGameConnections) ReqSetSendMessage

func (cli *ClientGameConnections) ReqSetSendMessage(ctx context.Context, callback retGameConnectionsSetSendMessage, token string, message types.RequestSetMessage) (request RequestRPC)

func (*ClientGameConnections) SetSendMessage

func (cli *ClientGameConnections) SetSendMessage(ctx context.Context, token string, message types.RequestSetMessage) (err error)

type ClientJsonRPC

type ClientJsonRPC struct {
	// contains filtered or unexported fields
}

func New

func New(endpoint string, opts ...Option) (cli *ClientJsonRPC)

func (*ClientJsonRPC) Batch

func (cli *ClientJsonRPC) Batch(ctx context.Context, requests ...RequestRPC)

func (*ClientJsonRPC) GameConnections

func (cli *ClientJsonRPC) GameConnections() *ClientGameConnections

func (*ClientJsonRPC) ServerSettings

func (cli *ClientJsonRPC) ServerSettings() *ClientServerSettings

type ClientServerSettings

type ClientServerSettings struct {
	*ClientJsonRPC
}

func (*ClientServerSettings) CreateRoom

func (cli *ClientServerSettings) CreateRoom(ctx context.Context, token string, createRoom types.CreateRoomRequest) (err error)

func (*ClientServerSettings) GetConnectionsNum

func (cli *ClientServerSettings) GetConnectionsNum(ctx context.Context, token string) (countConn int, exists bool, err error)

func (*ClientServerSettings) GetDeletedRooms added in v1.0.3

func (cli *ClientServerSettings) GetDeletedRooms(ctx context.Context, token string, ids []types.GetDeletedRooms) (deletedIds []types.GetDeletedRooms, err error)

func (*ClientServerSettings) GetServerSettings

func (cli *ClientServerSettings) GetServerSettings(ctx context.Context, token string) (settings types.Settings, err error)

func (*ClientServerSettings) HealthCheck

func (cli *ClientServerSettings) HealthCheck(ctx context.Context, token string) (exists bool, err error)

func (*ClientServerSettings) ReqCreateRoom

func (cli *ClientServerSettings) ReqCreateRoom(ctx context.Context, callback retServerSettingsCreateRoom, token string, createRoom types.CreateRoomRequest) (request RequestRPC)

func (*ClientServerSettings) ReqGetConnectionsNum

func (cli *ClientServerSettings) ReqGetConnectionsNum(ctx context.Context, callback retServerSettingsGetConnectionsNum, token string) (request RequestRPC)

func (*ClientServerSettings) ReqGetDeletedRooms added in v1.0.3

func (cli *ClientServerSettings) ReqGetDeletedRooms(ctx context.Context, callback retServerSettingsGetDeletedRooms, token string, ids []types.GetDeletedRooms) (request RequestRPC)

func (*ClientServerSettings) ReqGetServerSettings

func (cli *ClientServerSettings) ReqGetServerSettings(ctx context.Context, callback retServerSettingsGetServerSettings, token string) (request RequestRPC)

func (*ClientServerSettings) ReqHealthCheck

func (cli *ClientServerSettings) ReqHealthCheck(ctx context.Context, callback retServerSettingsHealthCheck, token string) (request RequestRPC)

type ErrorDecoder

type ErrorDecoder func(errData json.RawMessage) error

type Option

type Option func(cli *ClientJsonRPC)

func Cache

func Cache(cache cache) Option

func CircuitBreaker

func CircuitBreaker(cfg cb.Settings) Option

func DecodeError

func DecodeError(decoder ErrorDecoder) Option

func FallbackGameConnectionsErr

func FallbackGameConnectionsErr(fallback fallbackGameConnections) Option

func FallbackServerSettingsErr

func FallbackServerSettingsErr(fallback fallbackServerSettings) Option

func FallbackTTL

func FallbackTTL(ttl time.Duration) Option

func Headers

func Headers(headers ...interface{}) Option

func Insecure

func Insecure() Option

func LogOnError

func LogOnError() Option

func LogRequest

func LogRequest() Option

type RequestRPC

type RequestRPC struct {
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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