cmd

package
v0.0.0-...-52f210c Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2020 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type ESLogger

type ESLogger struct {
	Logger log15.Logger
}

func (*ESLogger) Printf

func (l *ESLogger) Printf(format string, v ...interface{})

type MyMyTime

type MyMyTime struct {
	parser.Time
}

MyMyTime encapsulates parser.Time so that it can be serialized to PG.

We don't implement EncodeBinary on MyTime to avoid a dependancy on pgio in the library part.

func (*MyMyTime) EncodeBinary

func (src *MyMyTime) EncodeBinary(ci *pgtype.ConnInfo, buf []byte) ([]byte, error)

EncodeBinary implements the MarshalBinary interface.

type Row

type Row []interface{}

func (*Row) AddField

func (r *Row) AddField(field interface{}) error

type Rows

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

func RowFactory

func RowFactory(maxSize int, nbFields int) *Rows

func (*Rows) Clear

func (r *Rows) Clear()

func (*Rows) GetRow

func (r *Rows) GetRow() (*Row, bool)

func (*Rows) GetSource

func (r *Rows) GetSource() (s *Source, err error)

func (*Rows) Len

func (r *Rows) Len() int

func (*Rows) String

func (r *Rows) String() string

type Source

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

func (*Source) Err

func (s *Source) Err() error

func (*Source) Next

func (s *Source) Next() bool

func (*Source) Values

func (s *Source) Values() ([]interface{}, error)

Jump to

Keyboard shortcuts

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