apiv1

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: 19 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 API v1 HTTP handler.

Types

type Config

type Config struct {
	DiceAppService  dice.Service
	RoomAppService  room.Service
	UserAppService  user.Service
	MetricsRecorder MetricsRecorder
	ServePefix      string
	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.

Jump to

Keyboard shortcuts

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