readers

package
v0.0.0-...-8a22117 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultReader

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

func NewDefaultReader

func NewDefaultReader() *DefaultReader

func (*DefaultReader) AppendHook

func (r *DefaultReader) AppendHook(h Hook) *DefaultReader

func (*DefaultReader) Read

func (r *DefaultReader) Read(path string) (map[string]int, error)

type FastReader

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

func NewFastReader

func NewFastReader() *FastReader

func (*FastReader) AppendHook

func (r *FastReader) AppendHook(h Hook) *FastReader

func (*FastReader) Read

func (r *FastReader) Read(path string) (map[string]int, error)

func (*FastReader) SetChunckSize

func (r *FastReader) SetChunckSize(sz int) *FastReader

type Hook

type Hook interface {
	Run(token string)
}

func NewPostgreSQLHook

func NewPostgreSQLHook(connection string) (Hook, error)

type PostgreSQLHook

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

func (*PostgreSQLHook) Run

func (h *PostgreSQLHook) Run(token string)

type Reader

type Reader interface {
	Read(path string) (map[string]int, error)
}

Jump to

Keyboard shortcuts

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