semanticid

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewService

func NewService(repo Repository) core.SemanticIDService

Types

type Repository

type Repository interface {
	Upsert(ctx context.Context, item core.SemanticID) (core.SemanticID, error)
	Get(ctx context.Context, id, owner string) (core.SemanticID, error)
	Delete(ctx context.Context, id, owner string) error
	Clean(ctx context.Context, ccid string) error
}

func NewRepository

func NewRepository(db *gorm.DB) Repository

Jump to

Keyboard shortcuts

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