Documentation
¶
Index ¶
- type Entity
- type Matter
- func (mk *Matter) Copy(ctx context.Context, id int64, to string) (*entity.Matter, error)
- func (ms *Matter) Create(ctx context.Context, t T) error
- func (ms *Matter) Delete(ctx context.Context, id ID) error
- func (ms *Matter) Find(ctx context.Context, id ID) (T, error)
- func (ms *Matter) FindAll(ctx context.Context, opts O) ([]T, int64, error)
- func (mk *Matter) FindByAlias(ctx context.Context, alias string) (*entity.Matter, error)
- func (mk *Matter) FindWith(ctx context.Context, opt *repo.MatterFindWithOption) (*entity.Matter, error)
- func (mk *Matter) GetObjects(ctx context.Context, id int64) ([]string, error)
- func (mk *Matter) PathExist(ctx context.Context, filepath string) bool
- func (mk *Matter) Recovery(ctx context.Context, id int64) error
- func (ms *Matter) Update(ctx context.Context, id ID, t T) error
- type RecycleBin
- func (ms *RecycleBin) Create(ctx context.Context, t T) error
- func (ms *RecycleBin) Delete(ctx context.Context, id ID) error
- func (ms *RecycleBin) Find(ctx context.Context, id ID) (T, error)
- func (ms *RecycleBin) FindAll(ctx context.Context, opts O) ([]T, int64, error)
- func (ms *RecycleBin) Update(ctx context.Context, id ID, t T) error
- type Storage
- func (ms *Storage) Create(ctx context.Context, t T) error
- func (ms *Storage) Delete(ctx context.Context, id ID) error
- func (ms *Storage) Find(ctx context.Context, id ID) (T, error)
- func (ms *Storage) FindAll(ctx context.Context, opts O) ([]T, int64, error)
- func (ms *Storage) Update(ctx context.Context, id ID, t T) error
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entity ¶
type Entity[ID repo.IDType] interface { comparable GetID() ID }
type Matter ¶
type Matter struct {
// contains filtered or unexported fields
}
func (*Matter) FindByAlias ¶
func (*Matter) GetObjects ¶
type RecycleBin ¶
type RecycleBin struct {
// contains filtered or unexported fields
}
func NewRecycleBin ¶
func NewRecycleBin() *RecycleBin
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func NewStorage ¶
func NewStorage() *Storage
Click to show internal directories.
Click to hide internal directories.