ui

package
v0.0.0-...-c1919a7 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg Config) (http.Handler, error)

New returns UI handler.

func NewTplRenderer

func NewTplRenderer(logger log.Logger) (*tplRenderer, error)

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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