Documentation ¶
Index ¶
Constants ¶
View Source
const ( // AllInOne read csv sequentially AllInOne csvReaderStrategy = iota // Separate read csv concurrently Separate )
View Source
const EnvRetryIntervalUs = "NEBULA_RETRY_INTERVAL_US"
View Source
const EnvRetryTimeoutUs = "NEBULA_RETRY_TIMEOUT_US"
View Source
const EnvRetryTimes = "NEBULA_RETRY_TIMES"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GraphClient ¶
type GraphClient struct { Client *graph.Session Pool *GraphPool DataCh chan common.Data // contains filtered or unexported fields }
GraphClient a wrapper for nebula client, could read data from DataCh
func (*GraphClient) Close ¶
func (gc *GraphClient) Close() error
func (*GraphClient) Execute ¶
func (gc *GraphClient) Execute(stmt string) (common.IGraphResponse, error)
Execute executes nebula query
func (*GraphClient) GetData ¶
func (gc *GraphClient) GetData() (common.Data, error)
GetData get data from csv reader
func (*GraphClient) Open ¶
func (gc *GraphClient) Open() error
type GraphPool ¶
type GraphPool struct { DataCh chan common.Data OutputCh chan []string // contains filtered or unexported fields }
GraphPool nebula connection pool
func (*GraphPool) ConfigCsvStrategy ¶
Deprecated ConfigCsvStrategy sets csv reader strategy
func (*GraphPool) GetSession ¶
func (gp *GraphPool) GetSession() (common.IGraphClient, error)
GetSession gets the session from pool
type K6Module ¶ added in v1.1.6
type K6Module struct {
// contains filtered or unexported fields
}
refer: https://k6.io/docs/extensions/get-started/create/javascript-extensions/#use-the-advanced-module-api K6Module is a module for k6, using the advanced module API
type K6NebulaInstance ¶ added in v1.1.6
type K6NebulaInstance struct {
// contains filtered or unexported fields
}
func (*K6NebulaInstance) Exports ¶ added in v1.1.6
func (i *K6NebulaInstance) Exports() modules.Exports
type Response ¶
Response a wrapper for nebula resultSet
func (*Response) GetResponseTime ¶
GetResponseTime GetResponseTime
Click to show internal directories.
Click to hide internal directories.