app

package
v0.0.0-...-0de1ee4 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func ProvideEventBus

func ProvideEventBus(options ...EventBusOption) (*message.Router, error)

func ProvideHttpServer

func ProvideHttpServer(
	web *web.Web,
	api *api.Api,
	ws *ws.WebSocket,
	config *Config,

) *chi.Mux

func ProvideHttpTestServer

func ProvideHttpTestServer(
	web *web.Web,
	api *api.Api,
	ws *ws.WebSocket,
	testability *testability.Testability,
	config *Config,
) *chi.Mux

Types

type Application

type Application struct {
	chi.Router
	Config *Config
	Event  *message.Router
}

func New

func New(
	http *chi.Mux,
	config *Config,
	event *message.Router,
) *Application

func (*Application) Serve

func (app *Application) Serve() error

type Config

type Config struct {
	Address    string
	SessionKey string
}

func NewConfig

func NewConfig(p config.Provider) *Config

type EventBusOption

type EventBusOption = func(*message.Router)

func ProvideEventSubscribers

func ProvideEventSubscribers(
	database *db.Database,
	databaseSubscribers []subscriber.DatabaseSubscriber,
) []EventBusOption

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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