api

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeroutineEndpoints

func ChangeroutineEndpoints(config config.Config, states *state.StateRepo, router *httprouter.Router)

func DeviceEndpoints

func DeviceEndpoints(config config.Config, states *state.StateRepo, router *httprouter.Router)

func OtherEndpoints

func OtherEndpoints(config config.Config, states *state.StateRepo, router *httprouter.Router)

func RoomEndpoints

func RoomEndpoints(config config.Config, states *state.StateRepo, router *httprouter.Router)

func ServiceEndpoints

func ServiceEndpoints(config config.Config, states *state.StateRepo, router *httprouter.Router)

func Start

func Start(ctx context.Context, config config.Config, staterepo *state.StateRepo)

func TemplateEndpoints

func TemplateEndpoints(config config.Config, states *state.StateRepo, router *httprouter.Router)

func WorldEndpoints

func WorldEndpoints(config config.Config, states *state.StateRepo, router *httprouter.Router)

Types

type LoggerMiddleWare

type LoggerMiddleWare struct {
	// contains filtered or unexported fields
}

func Logger

func Logger(handler http.Handler, logLevel string) *LoggerMiddleWare

func (*LoggerMiddleWare) ServeHTTP

func (this *LoggerMiddleWare) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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