goadify

package module
v0.0.0-...-4479cc4 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrModuleAlreadyLoaded        = errors.New("module already loaded")
	ErrPrefixNotStartingWithSlash = errors.New("module's http prefix must starts with slash")
	ErrPrefixEndsWithSlash        = errors.New("module's http prefix must NOT ends with slash")
)

Functions

This section is empty.

Types

type Config

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

type Goadify

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

func New

func New(options ...Option) *Goadify

func (*Goadify) HttpHandler

func (g *Goadify) HttpHandler() (http.Handler, error)

type Option

type Option func(g *Goadify)

func WithConfig

func WithConfig(config *Config) Option

func WithLogger

func WithLogger(logger interfaces.Logger) Option

func WithModules

func WithModules(modules ...interfaces.Module) Option

Jump to

Keyboard shortcuts

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