mux

package
v0.0.0-...-da924b9 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mux provides support to bind domain level routes to the application mux.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WebAPI

func WebAPI(log *logger.Logger, db *sqlx.DB, routeAdder RouteAdder) *web.App

WebAPI constructs a http.Handler with all application routes bound.

Types

type RouteAdder

type RouteAdder interface {
	Add(*logger.Logger, *sqlx.DB, *web.App)
}

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

Jump to

Keyboard shortcuts

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