Documentation ¶
Overview ¶
TODO: This library is imported from ror, should determine if its a public library or not
Index ¶
- Constants
- func Create(ctx context.Context, task *apicontracts.Task) (*apicontracts.Task, error)
- func Delete(ctx context.Context, taskId string) (bool, *apicontracts.Task, error)
- func FindOne(ctx context.Context, property string, propertyValue string) (*apicontracts.Task, error)
- func GetAll(ctx context.Context) (*[]apicontracts.Task, error)
- func GetByFilter(ctx context.Context, filter *apicontracts.Filter) (*apicontracts.PaginatedResult[apicontracts.Task], error)
- func GetById(ctx context.Context, taskId string) (*apicontracts.Task, error)
- func Update(ctx context.Context, taskId string, taskInput apicontracts.Task) (*apicontracts.Task, *apicontracts.Task, error)
Constants ¶
View Source
const (
CollectionName = "tasks"
)
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(ctx context.Context, task *apicontracts.Task) (*apicontracts.Task, error)
func GetByFilter ¶
func GetByFilter(ctx context.Context, filter *apicontracts.Filter) (*apicontracts.PaginatedResult[apicontracts.Task], error)
func Update ¶
func Update(ctx context.Context, taskId string, taskInput apicontracts.Task) (*apicontracts.Task, *apicontracts.Task, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.