zjwt

package
v1.3.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

The package provides a way to create compact JWTs, "zJWT".

zJWTs for JWT with a large payload can be 1/3 the size of the original. This is achieved by gzipping the payload before base 64 encoding it.

zJWTs are only compact if they are smaller than the original JWTs. as long as they are smaller than the zJWT representation.

To help differentiate, zJWTs start with "zJWT/v1:"

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JWT

func JWT(text string) (string, error)

JWT expands either a zJWT or a JWT to a JWT.

func ZJWT

func ZJWT(text string) (string, error)

ZJWT turns a JWT into either a zJWT or return the original JWT, whichever is smaller.

Types

This section is empty.

Jump to

Keyboard shortcuts

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