restconnection

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GameConnections

type GameConnections interface {
	// @tg http-headers=token|Token
	// @tg summary=`SetUsersAndMessage`
	SetSendMessage(ctx context.Context, token string, message types.RequestSetMessage) (err error)
	// @tg http-headers=token|Token
	// @tg summary=`GetUserMessage`
	GetMessage(ctx context.Context, token string) (messages types.ResponseGetMessage, err error)
	// @tg http-headers=token|Token
	// @tg summary=`RemoveUser`
	RemoveUser(ctx context.Context, token string, userID uuid.UUID) (err error)
}

@tg http-prefix=api/v1/rest/ @tg jsonRPC-server log trace @tg tagNoOmitempty

type ServerSettings

type ServerSettings interface {
	// @tg http-headers=token|Token
	// @tg summary=`GetConnectionsNum`
	GetConnectionsNum(ctx context.Context, token string) (countConn int, exists bool, err error)
	// @tg http-headers=token|Token
	// @tg summary=`HealthCheck`
	HealthCheck(ctx context.Context, token string) (exists bool, err error)
	// @tg http-headers=token|Token
	// @tg summary=`GetServerSettings`
	GetServerSettings(ctx context.Context, token string) (settings types.Settings, err error)
	// @tg http-headers=token|Token
	// @tg summary=`CreateRoom`
	CreateRoom(ctx context.Context, token string, createRoom types.CreateRoomRequest) (err error)
	// @tg http-headers=token|Token
	// @tg summary=`SetNotifyServer`
	SetNotifyServer(ctx context.Context, token string, id uuid.UUID, url string) (err error)
	// @tg http-headers=token|Token
	// @tg summary=`GetGameResults`
	GetGameResults(ctx context.Context, token string) (gameConfigResults []types.GameConfigResults, err error)
}

@tg http-prefix=api/v1/rest/ @tg jsonRPC-server log trace @tg tagNoOmitempty

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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