server

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

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

Go to latest
Published: Jan 26, 2023 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPort = 8080
)
View Source
const Prefix = "/api/v1"

Variables

This section is empty.

Functions

func New

func New(cfg *Config) *service

Types

type Config

type Config struct {
	Concurrency int
	Debug       bool
	HTTPServer  *net.ServerConfig
	Source      *source.Config
	Storage     *pg.Options
}

type Server

type Server interface {
	Run() error
	Shutdown()
}

Jump to

Keyboard shortcuts

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