keymgr

package
v0.0.0-...-c5f9841 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package keymgr manage all app's appkey & appsecret

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyMgr

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

KeyMgr all key pair's manager

func New

func New(logger log.Logger) *KeyMgr

New new a key pair manager

func (*KeyMgr) KeyPairForApp

func (km *KeyMgr) KeyPairForApp(appID string) *keyPair

KeyPairForApp the key pair belong to the app

func (*KeyMgr) LoadKeyPairs

func (km *KeyMgr) LoadKeyPairs() error

LoadKeyPairs load all key pairs from database

func (*KeyMgr) RegenKeyPairForApp

func (km *KeyMgr) RegenKeyPairForApp(appID string) error

RegenKeyPairForApp regenerate key pair for app

Jump to

Keyboard shortcuts

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