config

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadBackupService

func LoadBackupService(sto mongosrv.Service) backupsrv.Service

func LoadMongoService

func LoadMongoService() mongosrv.Service

func LoadStorage

func LoadStorage() db.Storage

func MustRead

func MustRead(c *cli.Context) error

Types

type Config

type Config struct {
	Server struct {
		ServiceApi string
	}
	Storage struct {
		Path string
	}
	Mongodb struct {
		Database string
		Url      string
	}
	PoW struct {
		Difficulty int
	}
}
var C Config

Jump to

Keyboard shortcuts

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