Documentation ¶
Index ¶
- Constants
- Variables
- func ConfigAction(f cli.ActionFunc) cli.ActionFunc
- func FuncName(f interface{}) string
- func InjectAction(f cli.ActionFunc) cli.ActionFunc
- func MODE() string
- func Main(args ...string) error
- func RandomBytes(l int) ([]byte, error)
- func Register(args ...Plugin)
- func SECRET() ([]byte, error)
- func Shell(cmd string, args ...string) error
- type Jwt
- type Plugin
- type Security
Constants ¶
View Source
const ( // TypeHTML html TypeHTML = "html" // TypeMARKDOWN markdown TypeMARKDOWN = "markdown" // TypeTEXT text TypeTEXT = "text" // DateFormat date format DateFormat = "2006-01-02" )
View Source
const (
// PRODUCTION production mode
PRODUCTION = "production"
)
Variables ¶
Functions ¶
func ConfigAction ¶
func ConfigAction(f cli.ActionFunc) cli.ActionFunc
ConfigAction read config at first
func InjectAction ¶
func InjectAction(f cli.ActionFunc) cli.ActionFunc
InjectAction open beans at first
Types ¶
type Jwt ¶
type Jwt struct {
// contains filtered or unexported fields
}
Jwt jwt
type Plugin ¶
type Plugin interface { // init beans Init(*inject.Graph) error // console commands Shell() []cli.Command // register Mount() error }
Plugin plugin
Source Files ¶
Click to show internal directories.
Click to hide internal directories.