Documentation
¶
Index ¶
- type BaseRepo
- type Example
- type ExampleImpl
- type Permission
- type PermissionImpl
- type Plan
- type PlanImpl
- type Repository
- type RepositoryImpl
- func (inst *RepositoryImpl) Delete(id string) error
- func (inst *RepositoryImpl) Find(id string) (*entity.Repository, error)
- func (inst *RepositoryImpl) GetAll() []*entity.Repository
- func (inst *RepositoryImpl) GetIDs() []string
- func (inst *RepositoryImpl) Init(ds ptable.DataSource) error
- func (inst *RepositoryImpl) Insert(e *entity.Repository) (*entity.Repository, error)
- func (inst *RepositoryImpl) Session() ptable.Session
- func (inst *RepositoryImpl) Update(id string, e *entity.Repository) (*entity.Repository, error)
- type Role
- type RoleImpl
- type Task
- type TaskImpl
- type User
- type UserImpl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Example ¶
type Example interface {
ptable.Repository
Find(id int) (*entity.Example, error)
Update(id int, e *entity.Example) (*entity.Example, error)
}
Example ...
type ExampleImpl ¶
type ExampleImpl struct {
markup.Component `class:"ptable-repository"`
BaseRepo
// contains filtered or unexported fields
}
ExampleImpl ...
type Permission ¶
type Permission interface {
ptable.Repository
}
type PermissionImpl ¶
type PermissionImpl struct {
markup.Component `class:"ptable-repository"`
BaseRepo
// contains filtered or unexported fields
}
func (*PermissionImpl) Init ¶
func (inst *PermissionImpl) Init(ds ptable.DataSource) error
type Plan ¶
type Plan interface {
ptable.Repository
}
type Repository ¶
type Repository interface {
ptable.Repository
Session() ptable.Session
GetAll() []*entity.Repository
GetIDs() []string
Insert(e *entity.Repository) (*entity.Repository, error)
Find(id string) (*entity.Repository, error)
Update(id string, e *entity.Repository) (*entity.Repository, error)
Delete(id string) error
}
Repository ...
type RepositoryImpl ¶
type RepositoryImpl struct {
markup.Component `id:"repository-repository" class:"ptable-repository"`
BaseRepo
// contains filtered or unexported fields
}
RepositoryImpl ...
func (*RepositoryImpl) Find ¶
func (inst *RepositoryImpl) Find(id string) (*entity.Repository, error)
Find ...
func (*RepositoryImpl) GetAll ¶
func (inst *RepositoryImpl) GetAll() []*entity.Repository
GetAll ...
func (*RepositoryImpl) Insert ¶
func (inst *RepositoryImpl) Insert(e *entity.Repository) (*entity.Repository, error)
Insert ...
func (*RepositoryImpl) Update ¶
func (inst *RepositoryImpl) Update(id string, e *entity.Repository) (*entity.Repository, error)
Update ...
type Role ¶
type Role interface {
ptable.Repository
}
type Task ¶
type Task interface {
ptable.Repository
}
type TaskImpl ¶
type User ¶
type User interface {
ptable.Repository
}
Click to show internal directories.
Click to hide internal directories.