app

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Chi    *chi.Mux
	Melody *melody.Melody

	UserCache cache.UserCache

	WebSocketRepository repository.WebSocketRepository
}

func NewApp

func NewApp(melody *melody.Melody) App

func (App) InitApp

func (a App) InitApp()

InitApp initialises the Chi router.

func (App) InitRoutes

func (a App) InitRoutes()

InitRoutes initialises the handlers and the endpoints.

func (App) TokenMiddleware

func (a App) TokenMiddleware(next http.Handler) http.Handler

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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