store

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("not found")

ErrNotFound occurs when nothing found

Functions

This section is empty.

Types

type App

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

App of package

func New

func New(db db.App) App

New creates new App from Config

func (App) Enabled added in v1.8.0

func (a App) Enabled() bool

Enabled checks if storage is ok

func (App) ListFilters

func (a App) ListFilters(ctx context.Context) (map[string][]string, error)

ListFilters available on GUI

func (App) Refresh

func (a App) Refresh(ctx context.Context) error

Refresh filters values

func (App) SaveCommit

func (a App) SaveCommit(ctx context.Context, o model.Commit) error

SaveCommit into the storage

func (App) SearchCommit

func (a App) SearchCommit(ctx context.Context, query string, filters map[string][]string, before, after string, pageSize uint, last string) ([]model.Commit, uint, error)

SearchCommit in the storage based on given filters

Jump to

Keyboard shortcuts

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