privatekey

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

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

Generator jwt generator

func NewGenerator

func NewGenerator(privateKeyFile string) (*Generator, error)

NewGenerator new renewer

func (*Generator) Enabled

func (g *Generator) Enabled() bool

Enabled privateKeyFile is exists

func (*Generator) Gen

func (g *Generator) Gen(ctx context.Context) (string, error)

Gen generate jwt token

func (*Generator) Get

func (g *Generator) Get(ctx context.Context) (string, error)

Get access token

func (*Generator) Run

func (g *Generator) Run(ctx context.Context)

Run refresh token regularly

Jump to

Keyboard shortcuts

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