daemon

package
v0.0.0-...-dbbace4 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2018 License: LGPL-3.0 Imports: 10 Imported by: 1

Documentation

Overview

Package daemon contains functions to start the whole service. It uses own config type to configure connection with database, session manager and run API server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunService

func RunService(cfg *Config) error

RunService is a function that starts the whole service using provided config. Every error that happens during this function is fatal. So program can't run if any error happens.

Types

type Config

type Config struct {
	DB  db.Config
	SM  sm.Config
	API api.Config
	IM  s3.Config
}

Config is config structure for whole service.

Jump to

Keyboard shortcuts

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