options

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(opts *Datum)

Types

type Datum

type Datum struct {
	HttpPort                int
	HttpsPort               int
	RequestTimeoutDuration  time.Duration
	ResponseTimeoutDuration time.Duration
	ShutdownTimeoutDuration time.Duration
	CertFilePath            string
	KeyFilePath             string
	Routes                  DatumRoutes
	Middleware              DatumMiddleware
}

type DatumMiddleware added in v1.0.3

type DatumMiddleware struct {
	Before []DatumMiddlewareHandler
	After  []DatumMiddlewareHandler
}

type DatumMiddlewareHandler added in v1.0.3

type DatumMiddlewareHandler func(http.Handler) http.Handler

type DatumRoutes

type DatumRoutes struct {
	NotFound http.Handler
	Head     map[string]http.Handler
	Delete   map[string]http.Handler
	Get      map[string]http.Handler
	Patch    map[string]http.Handler
	Put      map[string]http.Handler
	Post     map[string]http.Handler
}

Jump to

Keyboard shortcuts

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