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, n *model.Policy) (int64, error) // Update ... Update(ctx context.Context, n *model.Policy) error // Get ... Get(ctx context.Context, id int64) (*model.Policy, 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.Policy, error) // Delete ... Delete(ctx context.Context, id int64) error }
DAO defines the interface to access the notification policy data model
Click to show internal directories.
Click to hide internal directories.