webserver

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: MIT Imports: 6 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 {
}

type Webserver

type Webserver struct {
	*service.Service
	*Config
	*database.Database
}

func NewWebserver

func NewWebserver(config *Config, db *database.Database) (*Webserver, error)

func (*Webserver) Start

func (ws *Webserver) Start(group *sync.WaitGroup)

Start spawns the main process done by the service.

func (*Webserver) Stop

func (ws *Webserver) Stop() error

Stop terminates all processes belonging to the service, blocking until they are all terminated.

Jump to

Keyboard shortcuts

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