api

package
v0.0.0-...-714aee7 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataSource

type DataSource interface {
	GetSource(name string) RowSource
}

type DataSourceImpl

type DataSourceImpl map[string]RowSource

func (DataSourceImpl) GetSource

func (dsi DataSourceImpl) GetSource(name string) RowSource

type MockTable

type MockTable struct {
	ItsNames []string
	ItsTypes []reflect.Type
}

func NewMockTable

func NewMockTable(vrs ...interface{}) (m *MockTable)

func (*MockTable) Lookup

func (m *MockTable) Lookup(i ...interface{}) (RowIter, error)

func (*MockTable) Names

func (m *MockTable) Names() []string

func (*MockTable) Types

func (m *MockTable) Types() []reflect.Type

type Row

type Row []interface{}

type RowIter

type RowIter interface {
	io.Closer
	Next() bool
	Fetch() (Row, error)
}

type RowSource

type RowSource interface {
	Names() []string
	Types() []reflect.Type
	Lookup(i ...interface{}) (RowIter, error)
}

type Spec

type Spec struct {
	Column string
	Values interface{}
}

Array-spec. ${Column} = any(${Values}).

type SpecSingle

type SpecSingle struct {
	Column string
	Value  interface{}
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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