manager

package
v0.0.0-...-881522d Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: MIT Imports: 9 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 struct {
	// ServerAddress is server HTTP address
	ServerAddress string
	// ServerMaxUploadFilesizeMB maximum upload filesize in megabytes.
	ServerMaxUploadFilesizeMB int64
	// ServerCORS is cross-origin resource sharing configuration
	ServerCORS *cors.Config
	// DB is a database adapter.
	DB db.Adapter
	// Cache is the session cache.
	Cache *cache.Cache
	// FileStore is a file storage provider.
	FileStore filestore.FileStore
}

type Manager

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

Manager is a smart HTTP server and router that handles requests routing and provides useful context to handlers.

func New

func New(cfg Config) *Manager

func (*Manager) Start

func (r *Manager) Start() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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