ctags

package
v0.0.0-...-5538d7f Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Fx = fx.Provide(
	newSQLRepo,
	newSvcImpl,
)

Fx provides the ctags module that includes - a SQL repo to manage the storage of tags - a service implementation to manage tags

Functions

func RunMigrations

func RunMigrations(db *gorm.DB) error

Types

type Svc

type Svc interface {
	AddTag(ctx context.Context, tag, entityID string) error
	RemoveTag(ctx context.Context, t, entityID string) error
	ListTags(ctx context.Context, entityID string) ([]string, error)
	HasTag(ctx context.Context, entityID, tag string) (bool, error)
	ListEntityIDs(ctx context.Context, tag string) ([]string, error)
}

Svc provides methods to manage tags on entities

Jump to

Keyboard shortcuts

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