busser

package module
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: MIT Imports: 9 Imported by: 0

README

busser

A program that runs on your server to validate and store table data.

busser is for you, when working with

  • Go
  • simple data tables
  • small tables ie if you think about paging, you are in the wrong place - use a database instead
  • Excel or Google Spreadsheets as a table editor and
    • you need extensive validation
    • local versioned copies
  • CSVs

Usage

  1. Use google docs or another online table editor to create / edit data
  2. Load the data as a CSV into busser
  3. Implement a processor
  4. Consume the resulting data in your application

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Busser

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

func New

func New(
	ctx context.Context,
	l *zap.Logger,
	store store.Store,
	conf config.Config,
) *Busser

func (*Busser) Commit

func (b *Busser) Commit(id table.ID, version table.Version) *service.ErrorCommit

func (*Busser) Delete

func (b *Busser) Delete(id table.ID, versions []table.Version) *service.ErrorDelete

func (*Busser) GetCommitted

func (b *Busser) GetCommitted(id table.ID) (t *table.Table, vt *validation.Table, err *service.ErrorGet)

func (*Busser) GetVersion

func (b *Busser) GetVersion(id table.ID, version table.Version) (t *table.Table, vt *validation.Table, err *service.ErrorGet)

func (*Busser) List

func (b *Busser) List() (table.Map, *service.ErrorGet)

func (*Busser) Validate

func (b *Busser) Validate(id table.ID) (
	t *table.Table,
	vt *validation.Table,
	err *service.ErrorValidation,
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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