Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Database ¶
type Database interface {
Get(key string) (farpass.Secret, error)
Put(key string, secret farpass.Secret) error
Delete(key string) (bool, error)
Status(key string) (oneTime bool, err error)
}
Database interface
func NewMemcached ¶
NewMemcached returns a new memcached database client
type Memcached ¶
Memcached client
type Server ¶
type Server struct {
DB Database
MaxLength int
Registry *prometheus.Registry
ForceOneTimeSecrets bool
AssetPath string
Logger *zap.Logger
TrustedProxies []string
}
Server struct holding database and settings. This should be created with server.New
func (*Server) HTTPHandler ¶
HTTPHandler containing all routes
Click to show internal directories.
Click to hide internal directories.