auth

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

View Source
const (
	Prefix string = "Wireleap"

	API       string = "Api"
	Relay     string = "Relay"
	Contract  string = "Contract"
	Directory string = "Directory"
	Client    string = "Client"

	Version   string = "Version"
	Pubkey    string = "Pubkey"
	Signature string = "Signature"

	Challenge string = "Challenge"
	Response  string = "Response"
)

Variables

This section is empty.

Functions

func DelHeader

func DelHeader(h http.Header, c, f string)

func GetHeader

func GetHeader(h http.Header, c, f string) string

func SetHeader

func SetHeader(h http.Header, c, f, v string)

func SignedRead

func SignedRead(r *io.ReadCloser, h http.Header, cs ...string) ([]byte, error)

func SignedReqBody

func SignedReqBody(r *http.Request, cs ...string) ([]byte, error)

func SignedResBody

func SignedResBody(r *http.Response, cs ...string) ([]byte, error)

func VersionCheck

func VersionCheck(h http.Header, component string, want *semver.Version) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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