v1

package
v0.0.0-...-e400c07 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAPIMux

func NewAPIMux(config APIMuxConfig, routeAdder RouteAdder) http.Handler

Types

type APIMuxConfig

type APIMuxConfig struct {
	Build    string
	Shutdown chan os.Signal
	Log      *logger.Logger
	Auth     *auth.Auth
	DB       *sqlx.DB
}

APIMuxConfig contains all mandatory systems required by handlers.

type RouteAdder

type RouteAdder interface {
	Add(app *web.App, cfg APIMuxConfig)
}

RouteAdder defines behavior that sets the routes to bind for an instance of the service.

Directories

Path Synopsis
Package auth provides authentication and authorization support.
Package auth provides authentication and authorization support.

Jump to

Keyboard shortcuts

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