httpServer

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config interface {
	BuildVersion() string
	Bind() string
	Port() int
	LogRequests() bool
	LogDebug() bool
	LogConfig() bool
	EnableDocs() bool
	FrontendProxy() *url.URL
	FrontendPath() string
	GetViewNames() []string
	FrontendExpires() time.Duration
	ConfigExpires() time.Duration
}

type Environment

type Environment struct {
	Config             Config
	ProjectTitle       string
	Views              []*config.ViewConfig
	Auth               config.AuthConfig
	DevicePoolInstance *device.DevicePool
	Storage            *dataflow.ValueStorageInstance
}

type ErrorResponse

type ErrorResponse struct {
	Message string `json:"message" example:"status bad request"`
}

type HttpServer

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

func Run

func Run(env *Environment) (httpServer *HttpServer)

func (*HttpServer) Shutdown

func (s *HttpServer) Shutdown()

Jump to

Keyboard shortcuts

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