modifier

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authorizer

type Authorizer Modifier

Authorizer is a kind of Modifier used to authorize the requests

type Modifier

type Modifier interface {
	Modify(*http.Request) error
}

type SecretAuthorizer

type SecretAuthorizer struct {
	// contains filtered or unexported fields
}

SecretAuthorizer authorizes the requests with the specified secret

func NewSecretAuthorizer

func NewSecretAuthorizer(secret string) *SecretAuthorizer

NewSecretAuthorizer returns an instance of SecretAuthorizer

func (*SecretAuthorizer) Modify

func (s *SecretAuthorizer) Modify(req *http.Request) error

Modify the request by adding secret authentication information

Jump to

Keyboard shortcuts

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