common

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: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Secret

type Secret struct {
	Id         string    `json:"id" binding:"required"`
	Content    string    `json:"content" binding:"required"`
	Expiration time.Time `json:"expiration" binding:"required"`
}

type Store

type Store interface {
	Init() error
	StoreSecret(secret string, expiration time.Duration) (string, error)
	GetSecret(id string) (string, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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