config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Private    string = "private"
	Restricted        = "restricted"
	Public            = "public"
)

Variables

This section is empty.

Functions

func BuildCachePath

func BuildCachePath(pathParts ...string) string

func BuildDataPath

func BuildDataPath(pathParts ...string) string

func BuildLibraryPath

func BuildLibraryPath(libraryPath string, pathParts ...string) string

func BuiltPath

func BuiltPath(base string, pathParts ...string) string

func CacheServerDisabled

func CacheServerDisabled() bool

func CurrentVisibility

func CurrentVisibility() string

func GetAddress

func GetAddress() string

func GetInitialAdmin

func GetInitialAdmin() (string, string)

func GetPort

func GetPort() string

func JWTSecret

func JWTSecret() string

func LoadEnv

func LoadEnv()

func RegistrationsEnabled

func RegistrationsEnabled() bool

func RelativePath

func RelativePath(basePath string, fullPath string) string

func RestrictedPassphrase

func RestrictedPassphrase() string

Types

type Layout

type Layout string
const (
	Freeform   Layout = "freeform"
	Structured        = "structured"
)

type Library

type Library struct {
	ID     int32
	Path   string
	Layout string
}

func ParseBasePaths

func ParseBasePaths() []Library

Jump to

Keyboard shortcuts

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