Documentation ¶
Index ¶
- type Policy
- func (p Policy) Create(policy *repository.ForgetPolicy, options common.DBOptions) error
- func (p Policy) Delete(id int, options common.DBOptions) error
- func (p Policy) Get(id int, options common.DBOptions) (*repository.ForgetPolicy, error)
- func (p Policy) List(options common.DBOptions) (policies []repository.ForgetPolicy, err error)
- func (p Policy) Search(repoId int, path string, options common.DBOptions) (policies []repository.ForgetPolicy, err error)
- func (p Policy) Update(policy *repository.ForgetPolicy, options common.DBOptions) error
- func (p Policy) UpdateField(id int, fieldName string, value interface{}, options common.DBOptions) error
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Policy ¶
type Policy struct {
common.DefaultDBService
}
func (Policy) Create ¶
func (p Policy) Create(policy *repository.ForgetPolicy, options common.DBOptions) error
func (Policy) Get ¶
func (p Policy) Get(id int, options common.DBOptions) (*repository.ForgetPolicy, error)
func (Policy) List ¶
func (p Policy) List(options common.DBOptions) (policies []repository.ForgetPolicy, err error)
func (Policy) Search ¶
func (p Policy) Search(repoId int, path string, options common.DBOptions) (policies []repository.ForgetPolicy, err error)
func (Policy) Update ¶
func (p Policy) Update(policy *repository.ForgetPolicy, options common.DBOptions) error
type Service ¶
type Service interface { common.DBService Create(policy *repository.ForgetPolicy, options common.DBOptions) error List(options common.DBOptions) ([]repository.ForgetPolicy, error) Search(repoId int, path string, options common.DBOptions) ([]repository.ForgetPolicy, error) Get(id int, options common.DBOptions) (*repository.ForgetPolicy, error) Delete(id int, options common.DBOptions) error Update(policy *repository.ForgetPolicy, options common.DBOptions) error UpdateField(id int, fieldName string, value interface{}, options common.DBOptions) error }
func GetService ¶
func GetService() Service
Click to show internal directories.
Click to hide internal directories.