config

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Admin added in v1.2.0

type Admin struct {
	Host                   string
	Port                   uint
	DatabaseMaxIdle        int
	DatabaseMaxConnections int
	RedisMaxIdle           int
	RedisMaxConnections    int
}

Admin sets what the daemon listens on

type CORS added in v1.2.0

type CORS struct {
	Sites []string
}

CORS is a list of allowed remote addresses

type Config

type Config struct {
	Admin       Admin
	Directories Directories
	CORS        CORS
	Database    Database
	Redis       Redis
	Session     Session
}

Config represents the possible configurable parameters for the local daemon

var Settings *Config

Settings holds the current config options

type Database added in v1.2.0

type Database struct {
	Host     string
	Protocol string
	User     string
	Password string
	Database string
}

Database holds the connection settings for MySQL

type Directories added in v1.2.0

type Directories struct {
	ImageDir     string
	ThumbnailDir string
	AvatarDir    string
}

Directories sets where files will be stored locally

type Redis added in v1.2.0

type Redis struct {
	Host     string
	Protocol string
}

Redis holds the connection settings for the redis cache

type Session added in v1.2.0

type Session struct {
	Secret string
}

Session holds secret for JWT key

Jump to

Keyboard shortcuts

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