repository

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CachedLabelRepository

type CachedLabelRepository struct {
	// contains filtered or unexported fields
}

func (*CachedLabelRepository) CreateLabel added in v0.0.3

func (repo *CachedLabelRepository) CreateLabel(ctx context.Context, uid int64, name string) (int64, error)

func (*CachedLabelRepository) UidLabels

func (repo *CachedLabelRepository) UidLabels(ctx context.Context, uid int64) ([]domain.Label, error)

type LabelRepository

type LabelRepository interface {
	UidLabels(ctx context.Context, uid int64) ([]domain.Label, error)
	CreateLabel(ctx context.Context, uid int64, name string) (int64, error)
}

func NewCachedLabelRepository

func NewCachedLabelRepository(dao dao.LabelDAO) LabelRepository

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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