store

package
v0.0.0-...-2768190 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2022 License: AGPL-3.0 Imports: 8 Imported by: 1

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
}

func New

func New(config conf.StoreConfig) *Store

func (*Store) GetSecret

func (s *Store) GetSecret(ctx context.Context, key string) (string, error)

func (*Store) Init

func (s *Store) Init() error

Init : establishes a connection to the redis server.

func (*Store) StoreSecret

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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