httpserver

package
v0.0.0-...-c1868ec Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PlayerLoginTimeoutInSeconds = 600
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EchoServer

type EchoServer struct {

	//DBs
	MongoDB mongo.MongoDBClient
	RedisDB redis.RedisCacheClient

	//Services
	PlayerService services.PlayerInterface
	FriendService services.FriendInterface
	PartyService  services.PartyInterface
	// contains filtered or unexported fields
}

func (*EchoServer) AcceptFriendRequest

func (e *EchoServer) AcceptFriendRequest(ctx echo.Context) error

func (*EchoServer) AddFriend

func (e *EchoServer) AddFriend(ctx echo.Context) error

func (*EchoServer) CreateNewPlayer

func (e *EchoServer) CreateNewPlayer(ctx echo.Context) error

func (*EchoServer) CreatePlayerParty

func (e *EchoServer) CreatePlayerParty(ctx echo.Context) error

func (*EchoServer) FetchAllFriendsAndInfo

func (e *EchoServer) FetchAllFriendsAndInfo(ctx echo.Context) error

func (*EchoServer) Liveness

func (s *EchoServer) Liveness(ctx echo.Context) error

func (*EchoServer) PlayerLogin

func (e *EchoServer) PlayerLogin(ctx echo.Context) error

func (*EchoServer) PlayerMiddleware

func (s *EchoServer) PlayerMiddleware(next echo.HandlerFunc) echo.HandlerFunc

func (*EchoServer) Readiness

func (s *EchoServer) Readiness(ctx echo.Context) error

func (*EchoServer) RejectFriendRequest

func (e *EchoServer) RejectFriendRequest(ctx echo.Context) error

func (*EchoServer) RemoveFriend

func (e *EchoServer) RemoveFriend(ctx echo.Context) error

func (*EchoServer) Start

func (s *EchoServer) Start() error

type Server

type Server interface {
	Start() error
	Readiness(ctx echo.Context) error
	Liveness(ctx echo.Context) error
}

func NewEchoServer

func NewEchoServer(sd *servermodels.ServerDependencies) Server

Jump to

Keyboard shortcuts

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