configs

package
v0.0.0-...-640912d Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: MIT Imports: 3 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 {
	Addr string `yaml:"addr" mapstructure:"addr"`
	Port string `yaml:"port" mapstructure:"port"`
}

type BuiltinConfig

type BuiltinConfig struct {
	Mongo  string       `yaml:"mongo" mapstructure:"mongo"`
	Webdav WebdavConfig `yaml:"webdav" mapstructure:"webdav"`
	Samba  SambaConfig  `yaml:"samba" mapstructure:"samba"`
	Minio  MinioConfig  `yaml:"minio" mapstructure:"minio"`
}

type MinioConfig

type MinioConfig struct {
	Endpoint  string `yaml:"endpoint" mapstructure:"endpoint"`
	AccessKey string `yaml:"access-key" mapstructure:"access-key"`
	SecretKey string `yaml:"secret-key" mapstructure:"secret-key"`
	UseSSL    bool   `yaml:"use-ssl" mapstructure:"use-ssl"`
	Bucket    string `yaml:"bucket" mapstructure:"bucket"`
}

type SambaConfig

type SambaConfig struct {
	Endpoint string `yaml:"endpoint" mapstructure:"endpoint"`
	User     string `yaml:"user" mapstructure:"user"`
	Password string `yaml:"password" mapstructure:"password"`
	Share    string `yaml:"share" mapstructure:"share"`
	Path     string `yaml:"path" mapstructure:"path"`
}

type ServerConfig

type ServerConfig struct {
	LogLevel string        `yaml:"log-level" mapstructure:"log-level"`
	API      APIConfig     `yaml:"api" mapstructure:"api"`
	Builtin  BuiltinConfig `yaml:"builtin" mapstructure:"builtin"`
}

func GetServerConfig

func GetServerConfig() *ServerConfig

type WebdavConfig

type WebdavConfig struct {
	Endpoint string `yaml:"endpoint" mapstructure:"endpoint"`
	User     string `yaml:"user" mapstructure:"user"`
	Password string `yaml:"password" mapstructure:"password"`
}

Jump to

Keyboard shortcuts

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