cryptmw

package
v0.0.0-...-83625b3 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MiddlewareDependencyCrypt = "*cryptmw.CryptMiddleware"
)

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(r *http.Request, msg []byte) []byte

func DecryptString

func DecryptString(r *http.Request, msg string) string

func Encrypt

func Encrypt(r *http.Request, msg []byte) []byte

func EncryptString

func EncryptString(r *http.Request, msg string) string

Types

type CryptMiddleware

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

func NewCryptMiddleware

func NewCryptMiddleware(key []byte) (*CryptMiddleware, error)

func (*CryptMiddleware) Dependencies

func (mw *CryptMiddleware) Dependencies() []string

func (*CryptMiddleware) Wrap

func (mw *CryptMiddleware) Wrap(next http.Handler) http.Handler

Jump to

Keyboard shortcuts

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