error

package
v3.8.0+incompatible Latest Latest
Warning

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

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

README

error

-- import "gopkg.in/Clever/optimus.v3/sources/error"

Usage

type ErrorTable
type ErrorTable struct {
	Stopped bool
}

ErrorTable implemements an Optimus Table It's purpose is to return a given error

func New
func New(err error) *ErrorTable

New returns a new Table that returns a given error. Primarily used for testing purposes.

func (*ErrorTable) Err
func (e *ErrorTable) Err() error

Err returns an ErrorTable's Error

func (*ErrorTable) Rows
func (e *ErrorTable) Rows() <-chan optimus.Row

Rows returns the chan for an ErrorTable's Rows note this should only return an error

func (*ErrorTable) Stop
func (e *ErrorTable) Stop()

Stop fulfills the requirement for ErrorTable to implement the Stop function of an Optimus Table

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorTable

type ErrorTable struct {
	Stopped bool
	// contains filtered or unexported fields
}

ErrorTable implemements an Optimus Table It's purpose is to return a given error

func New

func New(err error) *ErrorTable

New returns a new Table that returns a given error. Primarily used for testing purposes.

func (*ErrorTable) Err

func (e *ErrorTable) Err() error

Err returns an ErrorTable's Error

func (*ErrorTable) Rows

func (e *ErrorTable) Rows() <-chan optimus.Row

Rows returns the chan for an ErrorTable's Rows note this should only return an error

func (*ErrorTable) Stop

func (e *ErrorTable) Stop()

Stop fulfills the requirement for ErrorTable to implement the Stop function of an Optimus Table

Jump to

Keyboard shortcuts

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