Documentation
¶
Overview ¶
Package server provides rest-like api and serves static assets as well
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶ added in v1.3.0
type Config struct {
Domain string
WebRoot string
Protocol string
// validation parameters
PinSize int
MaxPinAttempts int
MaxExpire time.Duration
}
Config is a configuration for the server
type LoggerFlag ¶
type LoggerFlag int
LoggerFlag type
const ( LogAll LoggerFlag = iota LogBody )
logger flags enum
type Messager ¶
type Messager interface {
MakeMessage(duration time.Duration, msg, pin string) (result *store.Message, err error)
LoadMessage(key, pin string) (msg *store.Message, err error)
}
Messager interface making and loading messages
Click to show internal directories.
Click to hide internal directories.