signer

package
v0.0.0-...-5d5787e Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Signer)

func WithDataKey

func WithDataKey(key string) Option

func WithExpiration

func WithExpiration(exp time.Duration) Option

func WithIssuer

func WithIssuer(iss string) Option

func WithSubject

func WithSubject(sub string) Option

type Signer

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

func New

func New(method crypto.SigningMethod, opts ...Option) *Signer

func (*Signer) Sign

func (s *Signer) Sign(additionalClaims map[string]interface{}) jwt.JWT

Jump to

Keyboard shortcuts

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