httpServer

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: MIT Imports: 26 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
	FrontendProxy() *url.URL
	FrontendPath() string
	GetViewNames() []string
	FrontendExpires() time.Duration
	ConfigExpires() time.Duration
	ImageEarlyExpire() time.Duration
	HashSecret() string
}

type Dimension

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

func (Dimension) Height

func (c Dimension) Height() int

func (Dimension) Width

func (c Dimension) Width() int

type Environment

type Environment struct {
	Config                   Config
	ProjectTitle             string
	Views                    []*config.ViewConfig
	Auth                     config.AuthConfig
	CameraClientPoolInstance *cameraClient.ClientPool
	HashStorage              *hashStore.HashStore
}

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