Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DAO ¶
type DAO interface { // Create ... Create(ctx context.Context, r *model.Robot) (int64, error) // Update ... Update(ctx context.Context, r *model.Robot, props ...string) error // Get ... Get(ctx context.Context, id int64) (*model.Robot, error) // Count returns the total count of robots according to the query Count(ctx context.Context, query *q.Query) (total int64, err error) // List ... List(ctx context.Context, query *q.Query) ([]*model.Robot, error) // Delete ... Delete(ctx context.Context, id int64) error // DeleteByProjectID ... DeleteByProjectID(ctx context.Context, projectID int64) error }
DAO defines the interface to access the robot data model
Click to show internal directories.
Click to hide internal directories.