config

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package config provides configuration for functions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 {
	Get      Get
	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 Get added in v1.2.0

type Get struct {
	Host                   string
	Port                   uint
	DatabaseMaxIdle        int
	DatabaseMaxConnections int
	RedisMaxIdle           int
	RedisMaxConnections    int
	DataDog                bool
}

Get sets what the daemon listens on

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