Documentation
¶
Index ¶
- Constants
- func DeduplicateTable(ctx context.Context, opt DeduplicateTableOptions, ch *Client) error
- func InsertBridges(c *Client, ctx context.Context, bridges []*typespb.Bridge) (int, error)
- func InsertJobs(c *Client, ctx context.Context, jobs []*typespb.Job) (int, error)
- func InsertMetrics(c *Client, ctx context.Context, metrics []*typespb.Metric) (int, error)
- func InsertPipelines(c *Client, ctx context.Context, pipelines []*typespb.Pipeline) (int, error)
- func InsertSections(c *Client, ctx context.Context, sections []*typespb.Section) (int, error)
- func InsertTestCases(c *Client, ctx context.Context, cases []*typespb.TestCase) (int, error)
- func InsertTestReports(c *Client, ctx context.Context, reports []*typespb.TestReport) (int, error)
- func InsertTestSuites(c *Client, ctx context.Context, suites []*typespb.TestSuite) (int, error)
- func InsertTraces(c *Client, ctx context.Context, traces []*typespb.Trace) (int, error)
- func PrepareDeduplicateQuery(opt DeduplicateTableOptions) (string, map[string]string)
- func SelectPipelineMaxUpdatedAt(c *Client, ctx context.Context) (map[int64]float64, error)
- func SelectTableIDs[T int64 | string](c *Client, ctx context.Context, table string, column string) (map[T]struct{}, error)
- func SelectTraceSpanIDs(c *Client, ctx context.Context) (map[string]struct{}, error)
- func WithParameters(ctx context.Context, params map[string]string) context.Context
- type Cache
- func (c *Cache) UpdateBridges(data []int64) []bool
- func (c *Cache) UpdateJobs(data []int64) []bool
- func (c *Cache) UpdateLogEmbeddedMetrics(data []int64) []bool
- func (c *Cache) UpdatePipelines(data map[int64]float64) map[int64]bool
- func (c *Cache) UpdateSections(data []int64) []bool
- func (c *Cache) UpdateTestCases(data []string) []bool
- func (c *Cache) UpdateTestReports(data []string) []bool
- func (c *Cache) UpdateTestSuites(data []string) []bool
- func (c *Cache) UpdateTraceSpans(data []string) []bool
- type Client
- func (c *Client) Configure(cfg ClientConfig) error
- func (c *Client) CreateTables(ctx context.Context) error
- func (c *Client) Exec(ctx context.Context, query string, args ...any) error
- func (c *Client) InitCache(ctx context.Context) error
- func (c *Client) Ping(ctx context.Context) error
- func (c *Client) PrepareBatch(ctx context.Context, query string) (driver.Batch, error)
- func (c *Client) Select(ctx context.Context, dest any, query string, args ...any) error
- type ClientConfig
- type DeduplicateTableOptions
Constants ¶
View Source
const ( PipelinesTable string = "pipelines" JobsTable string = "jobs" SectionsTable string = "sections" BridgesTable string = "bridges" TestReportsTable string = "testreports" TestSuitesTable string = "testsuites" TestCasesTable string = "testcases" LogEmbeddedMetricsTable string = "metrics" TraceSpansTable string = "traces" )
Variables ¶
This section is empty.
Functions ¶
func DeduplicateTable ¶
func DeduplicateTable(ctx context.Context, opt DeduplicateTableOptions, ch *Client) error
func InsertBridges ¶
func InsertMetrics ¶
func InsertPipelines ¶
func InsertSections ¶
func InsertTestCases ¶
func InsertTestReports ¶
func InsertTestSuites ¶
func InsertTraces ¶
func PrepareDeduplicateQuery ¶
func PrepareDeduplicateQuery(opt DeduplicateTableOptions) (string, map[string]string)
func SelectTableIDs ¶
func SelectTraceSpanIDs ¶
Types ¶
type Cache ¶
func (*Cache) UpdateBridges ¶
func (*Cache) UpdateJobs ¶
func (*Cache) UpdateLogEmbeddedMetrics ¶
func (*Cache) UpdatePipelines ¶
func (*Cache) UpdateSections ¶
func (*Cache) UpdateTestCases ¶
func (*Cache) UpdateTestReports ¶
func (*Cache) UpdateTestSuites ¶
func (*Cache) UpdateTraceSpans ¶
type Client ¶
func NewClient ¶
func NewClient(cfg ClientConfig) (*Client, error)
func (*Client) Configure ¶
func (c *Client) Configure(cfg ClientConfig) error
func (*Client) PrepareBatch ¶
type ClientConfig ¶
Click to show internal directories.
Click to hide internal directories.