Documentation ¶
Index ¶
- Constants
- type EchoServer
- func (e *EchoServer) AcceptFriendRequest(ctx echo.Context) error
- func (e *EchoServer) AddFriend(ctx echo.Context) error
- func (e *EchoServer) CreateNewPlayer(ctx echo.Context) error
- func (e *EchoServer) CreatePlayerParty(ctx echo.Context) error
- func (e *EchoServer) FetchAllFriendsAndInfo(ctx echo.Context) error
- func (s *EchoServer) Liveness(ctx echo.Context) error
- func (e *EchoServer) PlayerLogin(ctx echo.Context) error
- func (s *EchoServer) PlayerMiddleware(next echo.HandlerFunc) echo.HandlerFunc
- func (s *EchoServer) Readiness(ctx echo.Context) error
- func (e *EchoServer) RejectFriendRequest(ctx echo.Context) error
- func (e *EchoServer) RemoveFriend(ctx echo.Context) error
- func (s *EchoServer) Start() error
- type Server
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
Click to show internal directories.
Click to hide internal directories.