Documentation
¶
Index ¶
- Variables
- func HMACAuthHandlerFunc(cfg HMACAuthServerConfig, next http.HandlerFunc) http.HandlerFunc
- func HMACKey(sharedKey, data string) (string, error)
- func HMACKeyBytes(sharedKey, data string) ([]byte, error)
- type HMACAuthClientConfig
- type HMACAuthCommonConfig
- type HMACAuthServerConfig
- type HMACClientAuth
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EmptyHMACAuthClientConfig = HMACAuthClientConfig{} EmptyHMACAuthServerConfig = HMACAuthServerConfig{} )
Functions ¶
func HMACAuthHandlerFunc ¶
func HMACAuthHandlerFunc(cfg HMACAuthServerConfig, next http.HandlerFunc) http.HandlerFunc
func HMACKeyBytes ¶
Types ¶
type HMACAuthClientConfig ¶
type HMACAuthClientConfig struct {
HMACAuthCommonConfig `mapstructure:",squash"`
}
func (HMACAuthClientConfig) IsEmpty ¶
func (c HMACAuthClientConfig) IsEmpty() bool
type HMACAuthCommonConfig ¶
type HMACAuthServerConfig ¶
type HMACAuthServerConfig struct {
HMACAuthCommonConfig `mapstructure:",squash"`
// HTTP Header to use as data input
HTTPHeader string `mapstructure:"http-header"`
}
func (HMACAuthServerConfig) IsEmpty ¶
func (c HMACAuthServerConfig) IsEmpty() bool
type HMACClientAuth ¶
type HMACClientAuth struct {
Config HMACAuthClientConfig
}
Click to show internal directories.
Click to hide internal directories.