Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTplRenderer ¶
Types ¶
type Config ¶
type Config struct { DiceAppService dice.Service RoomAppService room.Service UserAppService user.Service MetricsRecorder MetricsRecorder ServerPrefix string TimeNow func() time.Time SSEServer *sse.Server Logger log.Logger }
Config is the configuration to serve the API.
type MetricsRecorder ¶
type MetricsRecorder interface { gohttpmetrics.Recorder }
MetricsRecorder is the service used to record metrics in the HTTP API handler.
Source Files
¶
- common.go
- cookies.go
- dice.go
- handler_action_create_room.go
- handler_action_logout.go
- handler_action_manage_user.go
- handler_full_dice_roll_history.go
- handler_full_dice_roller.go
- handler_full_index.go
- handler_full_login.go
- handler_snippet_dice_roll_history_more_items.go
- handler_snippet_new_dice_roll.go
- handler_subscribe_dice_roll_events.go
- metrics.go
- middleware.go
- routes.go
- tpl.go
- ui.go
Click to show internal directories.
Click to hide internal directories.