tcp

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerSettings

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

func NewServerSettings

func NewServerSettings(rateLimit utils.RateLimit, server service.Service) *ServerSettings

func (*ServerSettings) CreateRoom

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

func (*ServerSettings) GetConnectionsNum

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

func (*ServerSettings) GetDeletedRooms added in v1.0.3

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

func (*ServerSettings) GetServerSettings

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

func (*ServerSettings) HealthCheck

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

Jump to

Keyboard shortcuts

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