Documentation ¶
Index ¶
- func NewConfig(data interface{}) kit.Config
- func NewMethodInstance(m kit.Method, r kit.Request, responder func(kit.Response)) *methodInstance
- func NewRegistry() kit.Registry
- type App
- func (a *App) Backend(name string) db.Backend
- func (a *App) BuildDefaultCache()
- func (a *App) BuildDefaultFileService(b db.Backend)
- func (a *App) BuildDefaultFrontends()
- func (a *App) BuildDefaultLogger()
- func (a *App) BuildDefaultMethods()
- func (a *App) BuildDefaultSerializers()
- func (a *App) BuildDefaultTaskService(b db.Backend)
- func (a *App) BuildDefaultUserService(b db.Backend)
- func (a *App) Cache(name string) kit.Cache
- func (a *App) Config() kit.Config
- func (a *App) Crawl()
- func (a *App) Debug() bool
- func (a *App) DefaultBackend() db.Backend
- func (a *App) Defaults()
- func (a *App) DropAllBackends() apperror.Error
- func (a *App) DropBackend(name string) apperror.Error
- func (a *App) ENV() string
- func (a *App) EmailService() kit.EmailService
- func (a *App) FileService() kit.FileService
- func (app *App) InitCli()
- func (a *App) InstanceId() string
- func (a *App) Logger() *logrus.Logger
- func (a *App) MigrateAllBackends(force bool) apperror.Error
- func (a *App) MigrateBackend(name string, version int, force bool) apperror.Error
- func (a *App) PrepareBackends()
- func (a *App) PrepareForRun()
- func (a *App) ReadConfig(path string)
- func (a *App) RebuildAllBackends() apperror.Error
- func (a *App) RebuildBackend(name string) apperror.Error
- func (a *App) RegisterBackend(b db.Backend)
- func (a *App) RegisterCache(c kit.Cache)
- func (a *App) RegisterEmailService(s kit.EmailService)
- func (a *App) RegisterFileService(f kit.FileService)
- func (a *App) RegisterFrontend(f kit.Frontend)
- func (a *App) RegisterHttpHandler(method, path string, handler kit.RequestHandler)
- func (a *App) RegisterMethod(method kit.Method)
- func (a *App) RegisterResource(res kit.Resource)
- func (a *App) RegisterSerializer(s kit.Serializer)
- func (a *App) RegisterTemplateEngine(e kit.TemplateEngine)
- func (a *App) RegisterUserService(s kit.UserService)
- func (a *App) Registry() kit.Registry
- func (a App) Resource(name string) kit.Resource
- func (a *App) Run()
- func (app *App) RunCli()
- func (a *App) RunCrawler()
- func (a *App) RunMethod(name string, r kit.Request, responder func(kit.Response), ...) (chan bool, apperror.Error)
- func (a *App) SetConfig(x kit.Config)
- func (a *App) SetDebug(x bool)
- func (a *App) SetENV(x string)
- func (a *App) SetInstanceId(x string)
- func (a *App) SetLogger(x *logrus.Logger)
- func (a *App) Shutdown() (shutdownChan chan bool, err apperror.Error)
- func (a *App) TemplateEngine() kit.TemplateEngine
- func (a *App) UserService() kit.UserService
- type Config
- func (c Config) DataDir() string
- func (c Config) Debug() bool
- func (c Config) ENV() string
- func (c Config) Get(path string) (kit.Config, error)
- func (c Config) GetData() interface{}
- func (c Config) Path(path string) (string, error)
- func (c Config) TmpDir() string
- func (c Config) UPath(path string, defaults ...string) string
- type Project
- type Registry
- func (d *Registry) AddBackend(b db.Backend)
- func (d *Registry) AddCache(cache kit.Cache)
- func (d *Registry) AddFrontend(frontend kit.Frontend)
- func (d *Registry) AddMethod(method kit.Method)
- func (d *Registry) AddResource(res kit.Resource)
- func (d *Registry) AddSerializer(serializer kit.Serializer)
- func (d *Registry) AllModelInfo() map[string]*db.ModelInfo
- func (d *Registry) App() kit.App
- func (d *Registry) Backend(name string) db.Backend
- func (d *Registry) Backends() map[string]db.Backend
- func (d *Registry) Cache(name string) kit.Cache
- func (d *Registry) Caches() map[string]kit.Cache
- func (d *Registry) Config() kit.Config
- func (d *Registry) DefaultBackend() db.Backend
- func (d *Registry) DefaultCache() kit.Cache
- func (d *Registry) DefaultSerializer() kit.Serializer
- func (d *Registry) EmailService() kit.EmailService
- func (r *Registry) EventBus() kit.EventBus
- func (d *Registry) FileService() kit.FileService
- func (d *Registry) Frontend(name string) kit.Frontend
- func (d *Registry) Frontends() map[string]kit.Frontend
- func (d *Registry) Get(name string) interface{}
- func (d *Registry) HttpFrontend() kit.HttpFrontend
- func (d *Registry) Logger() *logrus.Logger
- func (d *Registry) Method(name string) kit.Method
- func (d *Registry) Methods() map[string]kit.Method
- func (d *Registry) Resource(name string) kit.Resource
- func (d *Registry) ResourceService() kit.ResourceService
- func (d *Registry) Resources() map[string]kit.Resource
- func (d *Registry) Serializer(name string) kit.Serializer
- func (d *Registry) Serializers() map[string]kit.Serializer
- func (d *Registry) Set(name string, val interface{})
- func (d *Registry) SetApp(x kit.App)
- func (d *Registry) SetBackends(backends map[string]db.Backend)
- func (d *Registry) SetCaches(caches map[string]kit.Cache)
- func (d *Registry) SetConfig(c kit.Config)
- func (d *Registry) SetDefaultBackend(b db.Backend)
- func (d *Registry) SetDefaultCache(c kit.Cache)
- func (d *Registry) SetDefaultSerializer(s kit.Serializer)
- func (d *Registry) SetEmailService(s kit.EmailService)
- func (r *Registry) SetEventBus(x kit.EventBus)
- func (d *Registry) SetFileService(s kit.FileService)
- func (d *Registry) SetFrontends(frontends map[string]kit.Frontend)
- func (d *Registry) SetLogger(l *logrus.Logger)
- func (d *Registry) SetMethods(methods map[string]kit.Method)
- func (d *Registry) SetResourceService(s kit.ResourceService)
- func (d *Registry) SetResources(resources map[string]kit.Resource)
- func (d *Registry) SetSerializers(serializers map[string]kit.Serializer)
- func (d *Registry) SetTaskService(s kit.TaskService)
- func (d *Registry) SetTemplateEngine(e kit.TemplateEngine)
- func (d *Registry) SetUserService(s kit.UserService)
- func (d *Registry) TaskService() kit.TaskService
- func (d *Registry) TemplateEngine() kit.TemplateEngine
- func (d *Registry) UserService() kit.UserService
- type ResourceMethodData
- type SessionManager
- type Tag
- type Todo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMethodInstance ¶
func NewRegistry ¶
Types ¶
type App ¶
func NewPlainApp ¶
func NewPlainApp() *App
func (*App) BuildDefaultCache ¶
func (a *App) BuildDefaultCache()
func (*App) BuildDefaultFileService ¶
func (*App) BuildDefaultFrontends ¶
func (a *App) BuildDefaultFrontends()
func (*App) BuildDefaultLogger ¶
func (a *App) BuildDefaultLogger()
func (*App) BuildDefaultMethods ¶
func (a *App) BuildDefaultMethods()
func (*App) BuildDefaultSerializers ¶
func (a *App) BuildDefaultSerializers()
func (*App) BuildDefaultTaskService ¶
func (*App) BuildDefaultUserService ¶
func (*App) DefaultBackend ¶
func (*App) DropAllBackends ¶
func (a *App) DropAllBackends() apperror.Error
func (*App) DropBackend ¶
func (*App) EmailService ¶
func (a *App) EmailService() kit.EmailService
func (*App) FileService ¶
func (a *App) FileService() kit.FileService
func (*App) InstanceId ¶
func (*App) MigrateAllBackends ¶
func (*App) MigrateBackend ¶
func (*App) PrepareBackends ¶
func (a *App) PrepareBackends()
func (*App) PrepareForRun ¶
func (a *App) PrepareForRun()
func (*App) ReadConfig ¶
func (*App) RebuildAllBackends ¶
func (a *App) RebuildAllBackends() apperror.Error
func (*App) RebuildBackend ¶
func (*App) RegisterBackend ¶
func (*App) RegisterCache ¶
func (*App) RegisterEmailService ¶
func (a *App) RegisterEmailService(s kit.EmailService)
func (*App) RegisterFileService ¶
func (a *App) RegisterFileService(f kit.FileService)
func (*App) RegisterFrontend ¶
func (*App) RegisterHttpHandler ¶
func (a *App) RegisterHttpHandler(method, path string, handler kit.RequestHandler)
func (*App) RegisterMethod ¶
func (*App) RegisterResource ¶
func (*App) RegisterSerializer ¶
func (a *App) RegisterSerializer(s kit.Serializer)
func (*App) RegisterTemplateEngine ¶
func (a *App) RegisterTemplateEngine(e kit.TemplateEngine)
func (*App) RegisterUserService ¶
func (a *App) RegisterUserService(s kit.UserService)
func (*App) RunCrawler ¶
func (a *App) RunCrawler()
func (*App) SetInstanceId ¶
func (*App) TemplateEngine ¶
func (a *App) TemplateEngine() kit.TemplateEngine
func (*App) UserService ¶
func (a *App) UserService() kit.UserService
type Project ¶
type Project struct { db.IntIdModel users.IntUserModel govalidate.Model Name string `db:"max:400" valid:"required"` Description string `db:"max:4000" valid:"-"` Todos []*Todo `valid:"-"` }
func (Project) Collection ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func (*Registry) AddBackend ¶
func (*Registry) AddFrontend ¶
func (*Registry) AddResource ¶
func (*Registry) AddSerializer ¶
func (d *Registry) AddSerializer(serializer kit.Serializer)
func (*Registry) DefaultBackend ¶
func (*Registry) DefaultCache ¶
func (*Registry) DefaultSerializer ¶
func (d *Registry) DefaultSerializer() kit.Serializer
func (*Registry) EmailService ¶
func (d *Registry) EmailService() kit.EmailService
func (*Registry) FileService ¶
func (d *Registry) FileService() kit.FileService
func (*Registry) HttpFrontend ¶
func (d *Registry) HttpFrontend() kit.HttpFrontend
func (*Registry) ResourceService ¶
func (d *Registry) ResourceService() kit.ResourceService
func (*Registry) Serializer ¶
func (d *Registry) Serializer(name string) kit.Serializer
func (*Registry) Serializers ¶
func (d *Registry) Serializers() map[string]kit.Serializer
func (*Registry) SetDefaultBackend ¶
func (*Registry) SetDefaultCache ¶
func (*Registry) SetDefaultSerializer ¶
func (d *Registry) SetDefaultSerializer(s kit.Serializer)
func (*Registry) SetEmailService ¶
func (d *Registry) SetEmailService(s kit.EmailService)
func (*Registry) SetEventBus ¶
func (*Registry) SetFileService ¶
func (d *Registry) SetFileService(s kit.FileService)
func (*Registry) SetResourceService ¶
func (d *Registry) SetResourceService(s kit.ResourceService)
func (*Registry) SetSerializers ¶
func (d *Registry) SetSerializers(serializers map[string]kit.Serializer)
func (*Registry) SetTaskService ¶
func (d *Registry) SetTaskService(s kit.TaskService)
func (*Registry) SetTemplateEngine ¶
func (d *Registry) SetTemplateEngine(e kit.TemplateEngine)
func (*Registry) SetUserService ¶
func (d *Registry) SetUserService(s kit.UserService)
func (*Registry) TaskService ¶
func (d *Registry) TaskService() kit.TaskService
func (*Registry) TemplateEngine ¶
func (d *Registry) TemplateEngine() kit.TemplateEngine
func (*Registry) UserService ¶
func (d *Registry) UserService() kit.UserService
type ResourceMethodData ¶
type SessionManager ¶
func NewSessionManager ¶
func NewSessionManager(app *App) *SessionManager
func (*SessionManager) Prune ¶
func (m *SessionManager) Prune()
func (*SessionManager) QueueMethod ¶
func (m *SessionManager) QueueMethod(session kit.Session, method *methodInstance) apperror.Error
func (*SessionManager) Run ¶
func (m *SessionManager) Run()
type Todo ¶
type Todo struct { db.IntIdModel users.IntUserModel Name string `db:"max:400"` Description string `db:"max:400"` Files []*files.FileIntId `db:"m2m"` Tags []*Tag `db:"m2m"` }
func (Todo) Collection ¶
Click to show internal directories.
Click to hide internal directories.