Documentation ¶
Index ¶
- Constants
- Variables
- func Config(f cli.ActionFunc) cli.ActionFunc
- func DataSource() string
- func Home() string
- func Inject(f func(*cli.Context, *inject.Graph) error) cli.ActionFunc
- func IsProduction() bool
- func Main() error
- func Name() string
- func Random(n int) string
- func Register(args ...Plugin)
- func Secure() bool
- func Shell(cmd string, args ...string) error
- func Template(w io.Writer, n string, d interface{}) error
- func Walk(f func(Plugin) error) error
- type Media
- type Model
- type Plugin
- type Timestamp
- type Wrap
- func (p *Wrap) Do(f func(*gin.Context, string) error) gin.HandlerFunc
- func (p *Wrap) FORM(fm interface{}, ...) gin.HandlerFunc
- func (p *Wrap) HTML(t string, f func(*gin.Context, string) (gin.H, error)) gin.HandlerFunc
- func (p *Wrap) JSON(f func(*gin.Context, string) (interface{}, error)) gin.HandlerFunc
- func (p *Wrap) Redirect(f func(*gin.Context, string) (string, error)) gin.HandlerFunc
- func (p *Wrap) XML(f func(*gin.Context, string) (interface{}, error)) gin.HandlerFunc
Constants ¶
View Source
const ( // TypeMARKDOWN markdown format TypeMARKDOWN = "markdown" // TypeHTML html format TypeHTML = "html" )
View Source
const (
// FormatDateInput format for date input
FormatDateInput = "2006-01-02"
)
Variables ¶
Functions ¶
Types ¶
type Plugin ¶
type Plugin interface { Init() Mount(*gin.Engine) Dashboard(*gin.Context) []*widgets.Dropdown Open(*inject.Graph) error Console() []cli.Command Atom(lang string) ([]*atom.Entry, error) Sitemap() ([]stm.URL, error) Workers() map[string]job.Handler }
Plugin plugin
type Timestamp ¶
type Timestamp struct { ID uint `gorm:"primary_key" json:"id"` CreatedAt time.Time `json:"createdAt"` }
Timestamp timestamp
type Wrap ¶
Wrap wrap
func (*Wrap) FORM ¶
func (p *Wrap) FORM(fm interface{}, fn func(*gin.Context, string, interface{}) (interface{}, error)) gin.HandlerFunc
FORM wrap form handler
Source Files ¶
Click to show internal directories.
Click to hide internal directories.