Documentation ¶
Index ¶
- func ConnCategories(ctx context.Context, role field.Role) (c xpbsemantic.CategoriesClient, closer func() error, err error)
- func ConnDB() (*sqlx.DB, error)
- func FindUser(ctx context.Context, db *sqlx.DB, uid uint64) (*ent.User, error)
- func PbSemanticCategoryToPbUserCategory(c *pbsemantic.Category) *pbusers.Category
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnCategories ¶
func ConnCategories(ctx context.Context, role field.Role) (c xpbsemantic.CategoriesClient, closer func() error, err error)
func PbSemanticCategoryToPbUserCategory ¶
func PbSemanticCategoryToPbUserCategory(c *pbsemantic.Category) *pbusers.Category
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.