Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidAuthorization = &HAuthError{http.StatusUnauthorized, "invalid header[Authorization]"} ErrInvalidDate = &HAuthError{http.StatusUnauthorized, "invalid header[Date], requires RFC1123 format"} ErrInvalidContentMD5 = &HAuthError{http.StatusUnauthorized, "invalid header[Content-MD5]"} ErrInvalidContentType = &HAuthError{http.StatusUnauthorized, "invalid header[Content-Type]"} ErrInvalidAccessKey = &HAuthError{http.StatusUnauthorized, "invalid access key"} ErrInvalidParameter = &HAuthError{http.StatusUnauthorized, "invalid parameter in header string"} ErrInvalidSignature = &HAuthError{http.StatusUnauthorized, "invalid signature"} ErrInvalidIP = &HAuthError{http.StatusUnauthorized, "invalid IP"} ErrInvalidAPIVersion = &HAuthError{http.StatusUnauthorized, "invalid APIVersion"} ErrInvalidBody = &HAuthError{http.StatusUnauthorized, "invalid request body"} ErrTimestampOutOfRange = &HAuthError{http.StatusUnauthorized, "timestamp out of range"} ErrSignatureExpired = &HAuthError{http.StatusUnauthorized, "signature expired"} ErrSecretKeyRequired = &HAuthError{http.StatusUnauthorized, "HAuth Secret Key Locator Required"} ErrMissingAuthorization = &HAuthError{http.StatusUnauthorized, "missing header[Authorization]"} ErrMissingDate = &HAuthError{http.StatusUnauthorized, "missing header[Date]"} ErrMissingAPIVersion = &HAuthError{http.StatusUnauthorized, "missing parameter[APIVersion] in header[Authorization] string"} ErrMissingAPIKey = &HAuthError{http.StatusUnauthorized, "missing parameter[APIKey] in header[Authorization] string"} ErrMissingSignature = &HAuthError{http.StatusUnauthorized, "missing parameter[Signature] in header[Authorization] string"} ErrAccessDenied = &HAuthError{http.StatusForbidden, "access denied"} )
Functions ¶
This section is empty.
Types ¶
type AppSecretKeyQuerier ¶
type AppValidator ¶
type HAuth ¶
type HAuth struct {
// contains filtered or unexported fields
}
func NewHAuth ¶
func NewHAuth(getAppSecretKey AppSecretKeyQuerier, options *Options) *HAuth
type HAuthError ¶
func (HAuthError) Error ¶
func (err HAuthError) Error() string
type LogHandler ¶
Click to show internal directories.
Click to hide internal directories.