persistence

package
v0.0.1-0...-a0864a0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bucket

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

func (*Bucket) Cleanup

func (b *Bucket) Cleanup()

func (*Bucket) CreateAsyncJob

func (b *Bucket) CreateAsyncJob(nodeID node.ID, t job.Job) (*job.Async, error)

func (*Bucket) DeleteAsyncJob

func (b *Bucket) DeleteAsyncJob(asyncJob *job.Async) error

func (*Bucket) GetAllAsyncJobs

func (b *Bucket) GetAllAsyncJobs() ([]job.Async, error)

type Repository

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

func NewRepository

func NewRepository(directory string, logger zap.SugaredLogger) (*Repository, error)

func (*Repository) Bucket

func (r *Repository) Bucket(name, hash string, logger zap.SugaredLogger) (*Bucket, error)

Jump to

Keyboard shortcuts

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