Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewImpl)
ProviderSet is a provider set for wire
Functions ¶
This section is empty.
Types ¶
type IRepo ¶
type IRepo interface { // QueryByID serve caller to query a objective by id from database QueryByID(ctx contextx.Contextx, id string) (*okr.Objective, error) // Create serve caller to create a objective to database Create(ctx contextx.Contextx, created *okr.Objective) (*okr.Objective, error) // List serve caller to list all objectives from database List(ctx contextx.Contextx, offset, limit int) ([]*okr.Objective, error) // Count serve caller to count all objectives from database Count(ctx contextx.Contextx) (int, error) // Update serve caller to update a objective to database Update(ctx contextx.Contextx, updated *okr.Objective) (*okr.Objective, error) // Delete serve caller to delete a objective by id from database Delete(ctx contextx.Contextx, id string) (int, error) }
IRepo declare okr repo service function
func CreateRepo ¶
Click to show internal directories.
Click to hide internal directories.