server

package
v1.13.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SortDefault

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 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