Documentation
¶
Index ¶
- Variables
- type ClickHouseProvider
- func (p *ClickHouseProvider) Name() string
- func (p *ClickHouseProvider) QueryLatestTurn(ctx context.Context, taskID uuid.UUID, taskCreatedAt, end time.Time) (*QueryLatestTurnResp, error)
- func (p *ClickHouseProvider) QueryTurns(ctx context.Context, taskID uuid.UUID, _ time.Time, cursor string, limit int) (*QueryTurnsResp, error)
- type Entry
- type Gateway
- type LokiProvider
- func (p *LokiProvider) Name() string
- func (p *LokiProvider) QueryLatestTurn(ctx context.Context, taskID uuid.UUID, taskCreatedAt, end time.Time) (*QueryLatestTurnResp, error)
- func (p *LokiProvider) QueryTurns(ctx context.Context, taskID uuid.UUID, taskCreatedAt time.Time, cursor string, ...) (*QueryTurnsResp, error)
- func (p *LokiProvider) QueryWindow(ctx context.Context, taskID uuid.UUID, start, end time.Time) ([]Entry, error)
- type Provider
- type QueryLatestTurnResp
- type QueryTurnsResp
- type TurnChunk
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnsupported = errors.New("tasklog operation unsupported") )
Functions ¶
This section is empty.
Types ¶
type ClickHouseProvider ¶
type ClickHouseProvider struct {
// contains filtered or unexported fields
}
func NewClickHouseProvider ¶
func NewClickHouseProvider(client *clickhouse.Client) *ClickHouseProvider
func (*ClickHouseProvider) Name ¶
func (p *ClickHouseProvider) Name() string
func (*ClickHouseProvider) QueryLatestTurn ¶
func (p *ClickHouseProvider) QueryLatestTurn(ctx context.Context, taskID uuid.UUID, taskCreatedAt, end time.Time) (*QueryLatestTurnResp, error)
func (*ClickHouseProvider) QueryTurns ¶
type Gateway ¶
func (*Gateway) QueryLatestTurn ¶
type LokiProvider ¶
type LokiProvider struct {
// contains filtered or unexported fields
}
func NewLokiProvider ¶
func NewLokiProvider(client *loki.Client) *LokiProvider
func (*LokiProvider) Name ¶
func (p *LokiProvider) Name() string
func (*LokiProvider) QueryLatestTurn ¶
func (p *LokiProvider) QueryLatestTurn(ctx context.Context, taskID uuid.UUID, taskCreatedAt, end time.Time) (*QueryLatestTurnResp, error)
func (*LokiProvider) QueryTurns ¶
type QueryLatestTurnResp ¶
type QueryTurnsResp ¶
Click to show internal directories.
Click to hide internal directories.