configuration

package
v0.0.0-...-ede0ace Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2019 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const DockerApiVersion = "1.37"

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

type Api struct {
	Port                  int
	ShutdownTimeOut       time.Duration
	Secret                string
	TokenValidityDuration time.Duration
}

configuration of Dahu http API

type Conf

type Conf struct {
	PersistenceConf Persistence
	ApiConf         Api
	Close           chan interface{}
}

global configuration of Dahu

func InitConf

func InitConf() (c *Conf)

type Persistence

type Persistence struct {
	Type    PersistenceType
	Name    string
	TimeOut time.Duration
}

configuration of Dahu data persistence

type PersistenceType

type PersistenceType int

persistence type supported by Dahu.

const (
	InMemory PersistenceType = 1 + iota
)

Jump to

Keyboard shortcuts

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