server

package
v0.0.0-...-f6272d2 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2021 License: MIT Imports: 12 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 {
	ListenAddress string `yaml:"listen_address"`

	API  *api.Config  `yaml:"api"`
	App  *app.Config  `yaml:"app"`
	DB   *db.Config   `yaml:"database"`
	Mail *mail.Config `yaml:"mail"`
}

Config represents the server configuration

type Instance

type Instance struct {
	API    *api.API
	App    *app.App
	Config *Config
	DB     db.DB
	Mail   *mail.Client
	// contains filtered or unexported fields
}

Instance represents an instance of the server

func NewInstance

func NewInstance() *Instance

NewInstance returns an new instance of our server

func (*Instance) Shutdown

func (i *Instance) Shutdown()

Shutdown stops the server

func (*Instance) Start

func (i *Instance) Start(file string)

Start starts the server

Jump to

Keyboard shortcuts

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