Documentation ¶
Index ¶
- Variables
- func Count(ctx context.Context, client *ent.Client, q QueryParams) (count int, err error)
- func CreateQuery(client *ent.Client, q QueryParams) *ent.TagQuery
- func IsTagExist(ctx context.Context, client *ent.Client, name string) bool
- func ParseTag(name string) []string
- func Read(ctx context.Context, client *ent.Client, name string) (t *ent.Tag, err error)
- func ReadAll(ctx context.Context, client *ent.Client) (tags []*ent.Tag, err error)
- func ReadPage(ctx context.Context, client *ent.Client, q QueryParams) (tags []*ent.Tag, err error)
- func Write(ctx context.Context, client *ent.Client, t *ent.Tag) error
- type QueryParams
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTagNotFound = errors.New(1_000_000, "tag '%s' not found.")
Functions ¶
func CreateQuery ¶
func CreateQuery(client *ent.Client, q QueryParams) *ent.TagQuery
Types ¶
Click to show internal directories.
Click to hide internal directories.