Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database interface { Get(key string) (Secret, error) Put(key string, secret Secret) error Delete(key string) error }
Database interface
func NewMemcached ¶
NewMemcached returns a new memcached database client
type Secret ¶
type Secret struct { Expiration int32 `json:"expiration,omitempty"` Message string `json:"message"` OneTime bool `json:"one_time,omitempty"` }
Secret holds the encrypted message
type Yopass ¶
type Yopass struct {
// contains filtered or unexported fields
}
Yopass struct holding database and settings. This should be created with yopass.New
func (*Yopass) HTTPHandler ¶
HTTPHandler containing all routes
Click to show internal directories.
Click to hide internal directories.