api

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2018 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt added in v0.3.1

func Decrypt(data []byte, secret string) ([]byte, error)

Decrypt returns the data for given encrypted data.

func Encrypt added in v0.3.1

func Encrypt(data []byte, secret string) ([]byte, error)

Encrypt returns encrypted given data.

func IsUUID

func IsUUID(u string) bool

IsUUID .

func IsValidSlug

func IsValidSlug(s string) bool

IsValidSlug .

func NewLoggerConverter

func NewLoggerConverter() echo.Logger

NewLoggerConverter returns an Echo logger converter to Logrus.

func ParseJWT

func ParseJWT(secret, token string) (jwt.MapClaims, bool, error)

ParseJWT .

func RequestLogger

func RequestLogger(dev bool) echo.MiddlewareFunc

RequestLogger middleware for Echo.

func Slugify

func Slugify(source string) string

Slugify returns a slug for the given string.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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