secret

package
v0.0.0-...-19169da Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoSecret = fmt.Errorf("secret does not exist")

Functions

func Init

func Init(config nacelle.Config, services nacelle.ServiceContainer) error

Types

type Config

type Config struct {
	RedisHost   string `env:"redis_host" default:"localhost"`
	RedisPort   int    `env:"redis_port" default:"6379"`
	RedisDB     int    `env:"redis_db" default:"0"`
	RedisTTL    int    `env:"redis_ttl" default:"60"`
	RedisPrefix string `env:"redis_prefix" default:"secret"`
}

type SecretService

type SecretService interface {
	Post(string) (string, error)
	Read(string) (string, error)
}

Jump to

Keyboard shortcuts

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