Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DAO ¶
type DAO interface { Create(ctx context.Context, instance *provider.Instance) (int64, error) Get(ctx context.Context, id int64) (*provider.Instance, error) GetByName(ctx context.Context, name string) (*provider.Instance, error) Update(ctx context.Context, instance *provider.Instance, props ...string) error Delete(ctx context.Context, id int64) error Count(ctx context.Context, query *q.Query) (total int64, err error) List(ctx context.Context, query *q.Query) (ins []*provider.Instance, err error) }
DAO for instance
type ListInstanceQuery ¶
ListInstanceQuery defines the query params of the instance record.
Click to show internal directories.
Click to hide internal directories.