config

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIConfig

type APIConfig struct {
	// contains filtered or unexported fields
}

func GetAPIConfig

func GetAPIConfig() *APIConfig

func NewAPIConfig

func NewAPIConfig() *APIConfig

func (*APIConfig) Host added in v0.2.11

func (c *APIConfig) Host() string

func (*APIConfig) HostHTML added in v0.2.11

func (c *APIConfig) HostHTML() bool

func (*APIConfig) Load

func (c *APIConfig) Load()

func (*APIConfig) Methods

func (c *APIConfig) Methods() string

func (*APIConfig) Origins

func (c *APIConfig) Origins() string

func (*APIConfig) Port added in v0.2.11

func (c *APIConfig) Port() string

func (*APIConfig) URL added in v0.2.11

func (c *APIConfig) URL() string

type AUTHConfig

type AUTHConfig struct {
	// contains filtered or unexported fields
}

func GetAUTHConfig

func GetAUTHConfig() *AUTHConfig

func NewAUTHConfig

func NewAUTHConfig() *AUTHConfig

func (*AUTHConfig) Load

func (c *AUTHConfig) Load()

func (*AUTHConfig) RefreshTokenDuration

func (c *AUTHConfig) RefreshTokenDuration() int

func (*AUTHConfig) TokenDuration

func (c *AUTHConfig) TokenDuration() int

type Config

type Config struct {
}

func GetConfig

func GetConfig() *Config

func NewConfig

func NewConfig() *Config

func (*Config) Load

func (c *Config) Load() error

type DBConfig

type DBConfig struct {
	Host     string
	Port     int
	User     string
	Password string
	Database string
	// contains filtered or unexported fields
}

func GetDBConfig

func GetDBConfig() *DBConfig

func NewDBConfig

func NewDBConfig() *DBConfig

func (*DBConfig) GetConnectionString

func (c *DBConfig) GetConnectionString() string

func (*DBConfig) Load

func (c *DBConfig) Load()

type MQTTConfig

type MQTTConfig struct {
	Host     string
	Port     int
	User     string
	Password string
}

func GetMQTTConfig

func GetMQTTConfig() *MQTTConfig

func NewMQTTConfig

func NewMQTTConfig() *MQTTConfig

func (*MQTTConfig) Load

func (c *MQTTConfig) Load()

type NTFYConfig

type NTFYConfig struct {
	Host  string
	Token string
}

func GetNTFYConfig

func GetNTFYConfig() *NTFYConfig

func NewNTFYConfig

func NewNTFYConfig() *NTFYConfig

func (*NTFYConfig) Load

func (c *NTFYConfig) Load()

Jump to

Keyboard shortcuts

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