server

package
v0.0.0-...-8577a5a Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateOwner

func CreateOwner(config Config, password []byte) error

Types

type App

type App struct {
	*http.Routes
	Database *db.Database
}

func New

func New(config Config) (*App, error)

type Config

type Config struct {
	db.DBConfig
	http.HTTPConfig
}

Config is the global application config.

func NewConfig

func NewConfig() Config

func (*Config) Validate

func (c *Config) Validate() error

type Validator

type Validator interface {
	Validate() error
}

Validator is used for configs.

Directories

Path Synopsis
upload/atomdl
Package atomdl provides helper functions to allow atomic file downloads.
Package atomdl provides helper functions to allow atomic file downloads.

Jump to

Keyboard shortcuts

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