configs

package
v0.0.0-...-d92ad30 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(conf OpenerLoader)

Types

type Config

type Config struct {
	DbPostgres struct {
		Dnam string `json:"dnam"`
		Host string `json:"host"`
		Port string `json:"port"`
		User string `json:"user"`
		Pass string `json:"pass"`
		Pkey string `json:"pkey"`
		Sslm string `json:"sslm"`
	} `json:"dbPostgres"`
	DoSpaces struct {
		UseSpaces    string `json:"useSpaces"`
		AccessKey    string `json:"accessKey"`
		Secret       string `json:"secret"`
		BucketName   string `json:"bucketName"`
		CustomDomain string `json:"customDomain"`
		RegionName   string `json:"regionName"`
		EndpointUrl  string `json:"endpointUrl"`
		VanityUrl    string `json:"vanityUrl"`
	} `json:"doSpaces"`
	TempFileDir  string `json:"tempFileDir"`
	UploadPrefix string `json:"uploadPrefix"`
	RootDir      string `json:"rootDir"`
	Var02        string `json:"var02"`
}

func (*Config) Load

func (c *Config) Load(fileStream []byte) (err error)

func (*Config) Open

func (c *Config) Open(filePath string) (fileStream []byte, err error)

type Loader

type Loader interface {
	Load(fileStream []byte) (err error)
}

type Opener

type Opener interface {
	Open(filePath string) (fileStream []byte, err error)
}

type OpenerLoader

type OpenerLoader interface {
	Opener
	Loader
}

Jump to

Keyboard shortcuts

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