middleware

package
v0.0.0-...-6ae8573 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth(authFace AuthFace, hFunc func() hash.Hash) app.HandlerFunc

func Cors

func Cors() app.HandlerFunc

func GetSigned

func GetSigned(ak, sk, path string, t int64, hFunc func() hash.Hash) string

Types

type AuthFace

type AuthFace interface {
	GetSk(context context.Context, ctx *app.RequestContext,
		ak string, timestamp int64) (context.Context, string, error)
}

Jump to

Keyboard shortcuts

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