Documentation ¶
Index ¶
- type Admin
- type DefaultGuesser
- func (g *DefaultGuesser) CreateInputs(resourceName string) []*fields.Input
- func (g *DefaultGuesser) Icon(resourceName string) string
- func (g *DefaultGuesser) ListFields(resourceName string) []*fields.Field
- func (g *DefaultGuesser) Resources() []*Resource
- func (g *DefaultGuesser) UpdateInputs(resourceName string) []*fields.Input
- type DefaultGuesserOptions
- type Guesser
- type LinkerAdminPlugin
- func (l *LinkerAdminPlugin) AppendMiddlewares() []web.MiddlewareFunc
- func (l *LinkerAdminPlugin) Instance() interface{}
- func (l *LinkerAdminPlugin) Name() string
- func (l *LinkerAdminPlugin) OnCreated(z *zepto.Zepto)
- func (l *LinkerAdminPlugin) OnZeptoInit(z *zepto.Zepto)
- func (l *LinkerAdminPlugin) OnZeptoStart(z *zepto.Zepto)
- func (l *LinkerAdminPlugin) OnZeptoStop(z *zepto.Zepto)
- func (l *LinkerAdminPlugin) PrependMiddlewares() []web.MiddlewareFunc
- type Menu
- type MenuLink
- type Options
- type Resource
- type ResourceFieldEndpoint
- type ResourceInputEndpoint
- type Schema
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultGuesser ¶
type DefaultGuesser struct {
// contains filtered or unexported fields
}
func NewDefaultGuesser ¶
func NewDefaultGuesser(opts DefaultGuesserOptions) *DefaultGuesser
func (*DefaultGuesser) CreateInputs ¶
func (g *DefaultGuesser) CreateInputs(resourceName string) []*fields.Input
func (*DefaultGuesser) Icon ¶
func (g *DefaultGuesser) Icon(resourceName string) string
func (*DefaultGuesser) ListFields ¶
func (g *DefaultGuesser) ListFields(resourceName string) []*fields.Field
func (*DefaultGuesser) Resources ¶
func (g *DefaultGuesser) Resources() []*Resource
func (*DefaultGuesser) UpdateInputs ¶
func (g *DefaultGuesser) UpdateInputs(resourceName string) []*fields.Input
type DefaultGuesserOptions ¶
type LinkerAdminPlugin ¶
type LinkerAdminPlugin struct {
// contains filtered or unexported fields
}
func NewLinkerAdminPlugin ¶
func NewLinkerAdminPlugin(opts Options) *LinkerAdminPlugin
func (*LinkerAdminPlugin) AppendMiddlewares ¶
func (l *LinkerAdminPlugin) AppendMiddlewares() []web.MiddlewareFunc
func (*LinkerAdminPlugin) Instance ¶
func (l *LinkerAdminPlugin) Instance() interface{}
func (*LinkerAdminPlugin) Name ¶
func (l *LinkerAdminPlugin) Name() string
func (*LinkerAdminPlugin) OnCreated ¶
func (l *LinkerAdminPlugin) OnCreated(z *zepto.Zepto)
func (*LinkerAdminPlugin) OnZeptoInit ¶
func (l *LinkerAdminPlugin) OnZeptoInit(z *zepto.Zepto)
func (*LinkerAdminPlugin) OnZeptoStart ¶
func (l *LinkerAdminPlugin) OnZeptoStart(z *zepto.Zepto)
func (*LinkerAdminPlugin) OnZeptoStop ¶
func (l *LinkerAdminPlugin) OnZeptoStop(z *zepto.Zepto)
func (*LinkerAdminPlugin) PrependMiddlewares ¶
func (l *LinkerAdminPlugin) PrependMiddlewares() []web.MiddlewareFunc
type Resource ¶
type Resource struct { Name string `json:"name"` Icon string `json:"icon"` Endpoint string `json:"endpoint"` List *ResourceFieldEndpoint `json:"list_endpoint"` Create *ResourceInputEndpoint `json:"create_endpoint"` Update *ResourceInputEndpoint `json:"update_endpoint"` }
func NewResource ¶
type ResourceFieldEndpoint ¶
func NewResourceFieldEndpoint ¶
func NewResourceFieldEndpoint() *ResourceFieldEndpoint
func (*ResourceFieldEndpoint) AddField ¶
func (e *ResourceFieldEndpoint) AddField(f fields.Field) *ResourceFieldEndpoint
func (*ResourceFieldEndpoint) RemoveField ¶
func (e *ResourceFieldEndpoint) RemoveField(name string) *ResourceFieldEndpoint
func (*ResourceFieldEndpoint) ReplaceField ¶
func (e *ResourceFieldEndpoint) ReplaceField(name string, field fields.Field) *ResourceFieldEndpoint
type ResourceInputEndpoint ¶
func NewResourceInputEndpoint ¶
func NewResourceInputEndpoint() *ResourceInputEndpoint
func (*ResourceInputEndpoint) AddInput ¶
func (e *ResourceInputEndpoint) AddInput(i fields.Input) *ResourceInputEndpoint
func (*ResourceInputEndpoint) RemoveInput ¶
func (e *ResourceInputEndpoint) RemoveInput(name string) *ResourceInputEndpoint
func (*ResourceInputEndpoint) ReplaceInput ¶
func (e *ResourceInputEndpoint) ReplaceInput(name string, input fields.Input) *ResourceInputEndpoint
Source Files ¶
Click to show internal directories.
Click to hide internal directories.