server

package
v1.12.2 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SortDefault added in v1.12.2

func SortDefault[V any](m map[string]V) []string

SortDefault ensures that default roundtrips are the last item to be able to pipe the origin response body.

Types

type Context

type Context interface {
	Options() *Options
}

type Options

type Options struct {
	APIErrTpls     map[*config.API]*errors.Template
	FilesErrTpls   []*errors.Template
	ServerErrTpl   *errors.Template
	APIBasePaths   map[*config.API]string
	FilesBasePaths []string
	SPABasePaths   []string
	SrvBasePath    string
	ServerName     string
	TLS            *config.ServerTLS
}

func NewServerOptions

func NewServerOptions(conf *config.Server, logger *logrus.Entry) (*Options, error)

Jump to

Keyboard shortcuts

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