Versions in this module Expand all Collapse all v0 v0.1.1 Apr 8, 2023 v0.1.0 Apr 2, 2023 Changes in this version + const AmzAlgorithmKey + const AmzCredentialKey + const AmzDateKey + const AmzSecurityTokenKey + const AmzSignatureKey + const AmzSignedHeadersKey + const ContentSHAKey + const EmptyStringSHA256 + const ShortTimeFormat + const SigningAlgorithm + const StreamingEventsPayload + const TimeFormat + const UnsignedPayload + var ErrInvalidOption = errors.New("cannot apply option to HTTPSigner") + func ContentSHA256Sum(r *http.Request) (string, error) + type HTTPSigner interface + Presign func(r *http.Request, payloadHash string, sigtime Time) (*url.URL, http.Header, error) + Sign func(r *http.Request, payloadHash string, sigtime Time) error + func New(opts ...HTTPSignerOption) (HTTPSigner, error) + type HTTPSignerOption func(HTTPSigner) error + func WithCredential(accessKey, secret, sessionToken string) HTTPSignerOption + func WithEscapeURLPath(enable bool) HTTPSignerOption + func WithHeaderHoisting(enable bool) HTTPSignerOption + func WithRegionService(region, service string) HTTPSignerOption + type Time struct + func NewTime(t gotime.Time) Time + func (m *Time) ShortTimeFormat() string + func (m *Time) TimeFormat() string