api

package
v0.0.0-...-941446c Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(rg RouteGroup, cfg Config) *web.Mux

Build composes an http Handler from the given route group based on Config.

Types

type Config

type Config struct {
	Build    string
	Shutdown chan os.Signal
	Log      *slog.Logger
}

Config defines components required for registering Route Groups.

type RouteGroup

type RouteGroup interface {
	Register(m *web.Mux, cfg Config)
}

RouteGroup is defined by instances that can register routes to a web Mux based on Config.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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