tag

package
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResolverForTag

type ResolverForTag struct {
	DB *gorm.DB
}

ResolverForTag resolves tag specific things.

func (*ResolverForTag) CreateTag

func (r *ResolverForTag) CreateTag(ctx context.Context, key string, color string) (*gqlmodel.TagDefinition, error)

CreateTag creates a tag.

func (*ResolverForTag) RemoveTag

func (r *ResolverForTag) RemoveTag(ctx context.Context, key string) (*gqlmodel.TagDefinition, error)

RemoveTag removes a tag.

func (*ResolverForTag) SuggestTag

func (r *ResolverForTag) SuggestTag(ctx context.Context, query string) ([]*gqlmodel.TagDefinition, error)

SuggestTag suggests a tag.

func (*ResolverForTag) Tags

Tags returns all tags.

func (*ResolverForTag) UpdateTag

func (r *ResolverForTag) UpdateTag(ctx context.Context, key string, newKey *string, color string) (*gqlmodel.TagDefinition, error)

UpdateTag updates a tag.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL