jwt

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyPair

type KeyPair struct {
	Path          string
	ByteDataValue []byte
	Token         string
	Result        KeyPairResult `json:"result"`
}

func NewKeyPair

func NewKeyPair(path string) *KeyPair

func (*KeyPair) GenerateToken

func (kp *KeyPair) GenerateToken() error

func (*KeyPair) Parse

func (kp *KeyPair) Parse() error

func (*KeyPair) Valid

func (kp *KeyPair) Valid() error

type KeyPairResult

type KeyPairResult struct {
	AccountEmail string `json:"account_email"`
	AccountId    int    `json:"account_id"`
	KeyId        string `json:"key_id"`
	PrivateKey   string `json:"private_key"`
}

Jump to

Keyboard shortcuts

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