Documentation ¶
Index ¶
- Variables
- func SetDefaults(c *Config)
- type Config
- func (c Config) ComposedAlgorithm() string
- func (c Config) DateInEscherFormat() string
- func (c Config) DateInHTTPHeaderFormat() string
- func (c Config) GetAlgoPrefix() string
- func (c Config) GetAuthHeaderName() string
- func (c Config) GetDateHeaderName() string
- func (c Config) GetDateWithFormat(format string) string
- func (c Config) GetHashAlgo() string
- func (c Config) GetVendorKey() string
- func (c Config) IsSigningInQuery(r request.Interface) bool
- func (c Config) QueryKeyFor(key string) string
- func (c Config) Reconfig(date, hashAlgo, credentialScope, apiKeyID, apiSecret string) Config
- func (c Config) ShortDate() string
- func (c Config) SignatureQueryKey() string
- func (c *Config) UnmarshalJSON(data []byte) error
- func (c Config) Validate(r request.Interface) error
- type Interface
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RequestMethodIsInvalidError = errors.New("The request method is invalid") HTTPSchemaIncludedError = errors.New("The request url shouldn't contains http or https") EmptyRequestBodyForPostError = errors.New("The request body shouldn't be empty if the request method is POST") EscherKeyIsInvalidError = errors.New("Invalid Escher key") )
Functions ¶
func SetDefaults ¶
func SetDefaults(c *Config)
Types ¶
type Config ¶
type Config struct { Date string HashAlgo string ApiSecret string VendorKey string AlgoPrefix string AccessKeyId string AuthHeaderName string DateHeaderName string CredentialScope string }
func NewFromENV ¶
func (Config) ComposedAlgorithm ¶
func (Config) DateInEscherFormat ¶
func (Config) DateInHTTPHeaderFormat ¶
func (Config) GetAlgoPrefix ¶
func (Config) GetAuthHeaderName ¶
func (Config) GetDateHeaderName ¶
func (Config) GetDateWithFormat ¶
func (Config) GetHashAlgo ¶
func (Config) GetVendorKey ¶
func (Config) QueryKeyFor ¶
func (Config) SignatureQueryKey ¶
func (*Config) UnmarshalJSON ¶
type Interface ¶
type Interface interface { json.Unmarshaler }
Click to show internal directories.
Click to hide internal directories.