base

package
v0.0.0-...-3d32045 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2020 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 CT_YamlSettings

type CT_YamlSettings struct {
	Proj struct {
		Release bool `yaml:"release"`
	}

	Qiniu struct {
		AccessKey    string `yaml:"accessKey"`
		SecretKey    string `yaml:"secretKey"`
		Bucket       string `yaml:"bucket"`
		Zone         string `yaml:"zone"`
		Domain       string `yaml:"domain"`
		UploadPrefix string `yaml:"uploadPrefix"`
	}

	Wmf struct {
		Uri string `yaml:"uri"`
	}
}

func ReadYaml

func ReadYaml(configFile string) *CT_YamlSettings

type EpError

type EpError struct {
	ErrorCode int    `json:"error_code"`
	ErrorMsg  string `json:"error_msg"`
}

func NewEpError

func NewEpError(code int, msg string) *EpError

func (*EpError) Error

func (e *EpError) Error() string

Jump to

Keyboard shortcuts

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