Documentation
¶
Index ¶
- Constants
- func GetConfigModel() interface{}
- func IsErrorInit() bool
- func LevelDebug() logger.Level
- func LevelError() logger.Level
- func LevelFatal() logger.Level
- func LevelInfo() logger.Level
- func LevelNoLog() logger.Level
- func LevelPanic() logger.Level
- func LevelWarn() logger.Level
- func NewConfig(bucket, accessKey, secretKey string, endpoint *url.URL, region string) aws2.Config
- func NewConfigJsonUnmashal(p []byte) (aws2.Config, errors.Error)
- type Model
Constants ¶
View Source
const ( ErrorAwsError errors.CodeError = iota + errors.MIN_PKG_Aws + 30 ErrorConfigValidator ErrorConfigJsonUnmarshall ErrorEndpointInvalid ErrorRegionInvalid ErrorRegionEndpointNotFound ErrorCredentialsInvalid )
Variables ¶
This section is empty.
Functions ¶
func GetConfigModel ¶
func GetConfigModel() interface{}
func IsErrorInit ¶
func IsErrorInit() bool
func LevelDebug ¶
func LevelError ¶
func LevelFatal ¶
func LevelNoLog ¶
func LevelPanic ¶
Types ¶
type Model ¶ added in v1.3.2
type Model struct {
Region string `mapstructure:"region" json:"region" yaml:"region" toml:"region" validate:"printascii,required"`
Endpoint string `mapstructure:"endpoint" json:"endpoint" yaml:"endpoint" toml:"endpoint" validate:"url,required"`
AccessKey string `mapstructure:"accesskey" json:"accesskey" yaml:"accesskey" toml:"accesskey" validate:"printascii,required"`
SecretKey string `mapstructure:"secretkey" json:"secretkey" yaml:"secretkey" toml:"secretkey" validate:"printascii,required"`
Bucket string `mapstructure:"bucket" json:"bucket" yaml:"bucket" toml:"bucket" validate:"printascii,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.