classifications

package
v1.22.13 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultTxTTL = 60 * time.Second

Variables

This section is empty.

Functions

This section is empty.

Types

type DistributedRepo

type DistributedRepo struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewDistributeRepo

func NewDistributeRepo(remoteClient cluster.Client,
	memberLister cluster.MemberLister, localRepo localRepo,
	logger logrus.FieldLogger,
) *DistributedRepo

func (*DistributedRepo) Get

func (*DistributedRepo) Put

func (*DistributedRepo) TxManager

func (r *DistributedRepo) TxManager() *cluster.TxManager

type Repo

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

func NewRepo

func NewRepo(baseDir string, logger logrus.FieldLogger) (*Repo, error)

func (*Repo) DBPath

func (r *Repo) DBPath() string

func (*Repo) Get

func (r *Repo) Get(ctx context.Context, id strfmt.UUID) (*models.Classification, error)

func (*Repo) Put

func (r *Repo) Put(ctx context.Context, classification models.Classification) error

Jump to

Keyboard shortcuts

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