config

package
v1.7.12 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CORS added in v1.3.0

type CORS struct {
	Sites []string
}

CORS is a list of allowed remote addresses

type Config

type Config struct {
	Post        Post
	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.3.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.3.0

type Directories struct {
	ImageDir     string
	ThumbnailDir string
	AvatarDir    string
}

Directories sets where files will be stored locally

type Post added in v1.3.0

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

Post sets what the daemon listens on

type Redis added in v1.3.0

type Redis struct {
	Host     string
	Protocol string
}

Redis holds the connection settings for the redis cache

type Session added in v1.3.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