config

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultPort = 6620
View Source
const DefaultSsl = true
View Source
const DefaultTimeout = 600

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerConfig

type ServerConfig struct {
	ConfigDir string
	DebugMode bool

	*ServerEditableConfig
}

func (ServerConfig) GetCompleteConfigAlbumsDirName

func (sc ServerConfig) GetCompleteConfigAlbumsDirName() string

func (ServerConfig) GetCompleteConfigAuthorsDirName

func (sc ServerConfig) GetCompleteConfigAuthorsDirName() string

func (ServerConfig) GetCompleteConfigCertFilename

func (sc ServerConfig) GetCompleteConfigCertFilename() string

func (ServerConfig) GetCompleteConfigDbDirName

func (sc ServerConfig) GetCompleteConfigDbDirName() string

func (ServerConfig) GetCompleteConfigDbFilename

func (sc ServerConfig) GetCompleteConfigDbFilename() string

func (ServerConfig) GetCompleteConfigFilename

func (sc ServerConfig) GetCompleteConfigFilename() string

func (ServerConfig) GetCompleteConfigKeyFilename

func (sc ServerConfig) GetCompleteConfigKeyFilename() string

func (ServerConfig) GetCompleteConfigOldDbFilename added in v0.3.0

func (sc ServerConfig) GetCompleteConfigOldDbFilename() string

func (ServerConfig) GetCompleteConfigSongsDirName

func (sc ServerConfig) GetCompleteConfigSongsDirName() string

func (*ServerConfig) Save

func (sc *ServerConfig) Save()

type ServerEditableConfig

type ServerEditableConfig struct {
	Hostnames []string `json:"hostnames"`
	Port      int64    `json:"port"`
	Ssl       bool     `json:"ssl"`
	Timeout   int64    `json:"timeout"`
}

func NewServerEditableConfig

func NewServerEditableConfig(draftServerEditableConfig *ServerEditableConfig) *ServerEditableConfig

Jump to

Keyboard shortcuts

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