classifications

package
v1.17.1 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 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 added in v1.8.0

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

func NewDistributeRepo added in v1.8.0

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

func (*DistributedRepo) Get added in v1.8.0

func (*DistributedRepo) Put added in v1.8.0

func (*DistributedRepo) TxManager added in v1.8.0

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