views

package
Version: v0.0.0-...-3fe642c Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrExpectedViewRow returned when an invalid type is passed to a views table
	ErrExpectedViewRow = errors.New("Expected views.ViewRow")
	// ErrRowNotFound returned when a requested view row as not found.
	ErrRowNotFound = errors.New("ViewRow not found")
)

Functions

This section is empty.

Types

type ViewRow

type ViewRow struct {
	ID   string           `json:"id"`
	Data *json.RawMessage `json:"data"`
}

ViewRow holds view data

type ViewStore

type ViewStore interface {
	Get(id string) (ViewRow, error)
	Put(row ViewRow) error
}

ViewStore implementations persist views to backing service.

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL