conf

package
v0.3.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	DoctronUploaderAliOss = "alioss"
	DoctronUploaderMock   = "mockUploader"
)
View Source
const EnvProd = "prod"

Variables

View Source
var OssConfig alioss.OssConfig

Functions

This section is empty.

Types

type Config

type Config struct {
	Doctron Doctron
	Oss     Oss
}
var LoadedConfig *Config

func NewConfig

func NewConfig() *Config

func NewMockConfig

func NewMockConfig() *Config

func (*Config) String

func (conf *Config) String() string

type Doctron

type Doctron struct {
	MaxConvertWorker int
	Env              string
	Retry            bool
	MaxConvertQueue  int
	ConvertTimeout   int
	Uploader         string
	Domain           string
	TLSCertFile      string
	TLSKeyFile       string
	User             []User
}

type Oss

type Oss struct {
	Endpoint            string
	AccessKeyId         string
	AccessKeySecret     string
	BucketName          string
	PrivateServerDomain string
}

type User

type User struct {
	Username string
	Password string
}

Jump to

Keyboard shortcuts

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