config

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter struct {
	Match string
	Limit uint64
	Sorts map[string]string
}

Filter represents the way you want to filter the results

type Relationship

type Relationship struct {
	Table           string
	ForeignKey      string
	ReferencedTable string
	ReferencedKey   string
}

Relationship represents a relationship definition

type Spec

type Spec struct {
	Tables Tables
}

Spec represents the global app configuration

type Table

type Table struct {
	Name          string
	PrimaryKey    string
	IgnoreData    bool
	Filter        Filter
	Anonymise     map[string]string
	Relationships []*Relationship
}

Table represents a klepto table definition

type Tables

type Tables []*Table

Tables are an array of table

func (Tables) FindByName

func (t Tables) FindByName(name string) (*Table, error)

FindByName filter a table by its name

Jump to

Keyboard shortcuts

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