web

package
v0.0.0-...-2c83b83 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2020 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccessKeySetup

func AccessKeySetup()

func BaAuth

func BaAuth(w http.ResponseWriter, r *http.Request) error

func Signature

func Signature(method, uri, dateTime, secret string) string

func Start

func Start()

Types

type Accesskey

type Accesskey struct {
	ID     string `yaml:"id"`
	Secret string `yaml:secret`
}

type Accesskeys

type Accesskeys map[string][]Accesskey

type BaReq

type BaReq struct {
	Name      string
	AppID     string
	KeyID     string
	Signature string
}

func ParseAuthorization

func ParseAuthorization(val string) BaReq

type Keys

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

func NewKeys

func NewKeys() *Keys

func (*Keys) Get

func (k *Keys) Get(id string) Accesskey

func (Keys) Parse

func (k Keys) Parse(ks Accesskeys)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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