Documentation ¶
Index ¶
- Constants
- type ServerConfig
- func (sc ServerConfig) GetCompleteConfigAlbumsDirName() string
- func (sc ServerConfig) GetCompleteConfigAuthorsDirName() string
- func (sc ServerConfig) GetCompleteConfigCertFilename() string
- func (sc ServerConfig) GetCompleteConfigDbDirName() string
- func (sc ServerConfig) GetCompleteConfigDbFilename() string
- func (sc ServerConfig) GetCompleteConfigFilename() string
- func (sc ServerConfig) GetCompleteConfigKeyFilename() string
- func (sc ServerConfig) GetCompleteConfigOldDbFilename() string
- func (sc ServerConfig) GetCompleteConfigSongsDirName() string
- func (sc *ServerConfig) Save()
- type ServerEditableConfig
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
Click to show internal directories.
Click to hide internal directories.