hmacsig

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HMACSignature

type HMACSignature struct{}

func (*HMACSignature) AddAuth

func (h *HMACSignature) AddAuth(ctx context.Context, r *http.Request, params interface{}) error

func (*HMACSignature) Name

func (h *HMACSignature) Name() string

func (*HMACSignature) OptionalParams

func (h *HMACSignature) OptionalParams() []string

func (*HMACSignature) ParseParams

func (h *HMACSignature) ParseParams(m map[string]interface{}) (interface{}, error)

func (*HMACSignature) RequiredParams

func (h *HMACSignature) RequiredParams() []string

type HMACSignatureAuth

type HMACSignatureAuth struct{}

func (*HMACSignatureAuth) Authenticate

func (h *HMACSignatureAuth) Authenticate(ctx context.Context, r *http.Request, params interface{}) bool

func (*HMACSignatureAuth) Name

func (h *HMACSignatureAuth) Name() string

func (*HMACSignatureAuth) OptionalParams

func (h *HMACSignatureAuth) OptionalParams() []string

func (*HMACSignatureAuth) ParseParams

func (h *HMACSignatureAuth) ParseParams(m map[string]interface{}) (interface{}, error)

func (*HMACSignatureAuth) RequiredParams

func (h *HMACSignatureAuth) RequiredParams() []string

func (*HMACSignatureAuth) StripAuth added in v0.2.0

func (h *HMACSignatureAuth) StripAuth(r *http.Request, params interface{})

StripAuth removes the signature header from the request.

Jump to

Keyboard shortcuts

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