Documentation
¶
Index ¶
- Constants
- func BuildCachePath(pathParts ...string) string
- func BuildDataPath(pathParts ...string) string
- func BuildLibraryPath(libraryPath string, pathParts ...string) string
- func BuildPath(base string, pathParts ...string) string
- func GetInitialAdmin() (string, string)
- func LoadEnv()
- func RelativePath(basePath string, fullPath string) string
- type CacheOptions
- type CredentialsModel
- type DBOptions
- type Layout
- type Library
- type OptionsModel
- type Visibility
Constants ¶
View Source
const ( Private Visibility = "private" Restricted = "restricted" Public = "public" )
Variables ¶
This section is empty.
Functions ¶
func BuildCachePath ¶
func BuildDataPath ¶
func BuildLibraryPath ¶
func GetInitialAdmin ¶
func RelativePath ¶
Types ¶
type CacheOptions ¶ added in v0.4.0
type CredentialsModel ¶ added in v0.4.0
var Credentials *CredentialsModel // TODO: Encrypt in memory?
Credentials stores the JWT secret, and optionally a passphrase and credentials for the db
type Library ¶
func ParseBasePaths ¶
func ParseBasePaths() []Library
type OptionsModel ¶ added in v0.4.0
type OptionsModel struct { Hostname string Port string Registrations bool Visibility Visibility DB DBOptions Cache CacheOptions }
var Options *OptionsModel
Options stores the global configuration for the server
type Visibility ¶ added in v0.4.0
type Visibility string
Click to show internal directories.
Click to hide internal directories.