Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CSVReader ¶
type CSVReader struct {
Path string
Delimiter string
WithHeader bool
// contains filtered or unexported fields
}
func NewCsvReader ¶
func (*CSVReader) ReadForever ¶
ReadForever read the csv in slice first, and send to the data channel forever.
type ICsvReader ¶ added in v1.1.0
type IGraphClient ¶
type IGraphClient interface {
IClient
GetData() (Data, error)
Execute(stmt string) (IGraphResponse, error)
}
IGraphClient graph client
type IGraphClientPool ¶
type IGraphClientPool interface {
IClientPool
GetSession(username, password string) (IGraphClient, error)
// Init initialize the poop with default channel bufferSize
Init(address string, concurrent int) (IGraphClientPool, error)
InitWithSize(address string, concurrent int, size int) (IGraphClientPool, error)
ConfigCSV(path, delimiter string, withHeader bool, opts ...interface{}) error
ConfigOutput(path string) error
// Deprecated
ConfigCsvStrategy(strategy int)
}
IGraphClientPool graph client pool.
Click to show internal directories.
Click to hide internal directories.