Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthProvider ¶
type AuthProvider struct { Type AuthProviderType Secret string }
func NewAuthProvider ¶
func NewAuthProvider(providertype AuthProviderType, secret string) *AuthProvider
func (*AuthProvider) AddAuthHeaders ¶
func (a *AuthProvider) AddAuthHeaders(req *http.Request)
type AuthProviderType ¶
type AuthProviderType string
const ( AuthPoviderTypeAPIKey AuthProviderType = "APIKEY" AuthProviderTypeBearer AuthProviderType = "BEARER" )
type NoAuthprovider ¶
type NoAuthprovider struct { }
func NewNoAuthprovider ¶
func NewNoAuthprovider() *NoAuthprovider
func (NoAuthprovider) AddAuthHeaders ¶
func (a NoAuthprovider) AddAuthHeaders(req *http.Request)
Click to show internal directories.
Click to hide internal directories.