store

package
v0.0.0-...-dc6c969 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2019 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

la configuration se trouve dans la package conf, car sinon il y a des cycles d'imports

func New

func New(config conf.StoreConfig) *Store

func (*Store) GetSecret

func (s *Store) GetSecret(key string) (string, error)

pas de conversion en objet, car il est de toute façon reserialisé pour être renvoyé au client

func (*Store) Init

func (s *Store) Init() error

Init : establishes a connection to the redis server.

func (*Store) StoreSecret

func (s *Store) StoreSecret(secret string, expiration time.Duration) (string, error)

Jump to

Keyboard shortcuts

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