Documentation
¶
Index ¶
- type ALBLogsSchema
- type App
- func (app *App) GetS3Bucket(ctx context.Context) ([]string, error)
- func (app *App) GetS3Dir(ctx context.Context, bucket string, prefix string) ([]string, error)
- func (app *App) GetS3Keys(ctx context.Context, bucket string, prefix string) ([]string, error)
- func (app *App) GetS3KeysWithChannel(ctx context.Context, sender chan<- Path, bucket string, prefix string) error
- func (app *App) Run(ctx context.Context, paths []string, queryStr string, queryInfo *QueryInfo) error
- func (app *App) S3Select(ctx context.Context, input Querying, info *QueryInfo) (*Result, error)
- type CFLogsSchema
- type CSVInput
- type CountOnlySchema
- type FormatType
- type JSONInput
- type Path
- type QueryInfo
- type Querying
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ALBLogsSchema ¶ added in v0.3.0
type ALBLogsSchema struct { Type interface{} `json:"type"` Time interface{} `json:"time"` Elb interface{} `json:"elb"` ClientPort interface{} `json:"client:port"` TargetPort interface{} `json:"target:port"` RequestProcessingTime interface{} `json:"request_processing_time"` TargetProcessingTime interface{} `json:"target_processing_time"` ResponseProcessingTime interface{} `json:"response_processing_time"` ElbStatusCode interface{} `json:"elb_status_code"` TargetStatusCode interface{} `json:"target_status_code"` ReceivedBytes interface{} `json:"received_bytes"` SentBytes interface{} `json:"sent_bytes"` Request interface{} `json:"request"` UserAgent interface{} `json:"user_agent"` SslCipher interface{} `json:"ssl_cipher"` SslProtocol interface{} `json:"ssl_protocol"` TargetGroupArn interface{} `json:"target_group_arn"` TraceId interface{} `json:"trace_id"` DomainName interface{} `json:"domain_name"` ChosenCertArn interface{} `json:"chosen_cert_arn"` MatchedRulePriority interface{} `json:"matched_rule_priority"` RequestCreationTime interface{} `json:"request_creation_time"` ActionsExecuted interface{} `json:"actions_executed"` RedirectUrl interface{} `json:"redirect_url"` ErrorReason interface{} `json:"error_reason"` TargetPortList interface{} `json:"target:port_list"` TargetStatusCodeList interface{} `json:"target_status_code_list"` Classification interface{} `json:"classification"` ClassificationReason interface{} `json:"classification_reason"` }
func (*ALBLogsSchema) UnmarshalJSON ¶ added in v0.3.0
func (schema *ALBLogsSchema) UnmarshalJSON(b []byte) error
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) GetS3Bucket ¶ added in v0.3.0
func (*App) GetS3KeysWithChannel ¶ added in v0.3.0
type CFLogsSchema ¶ added in v0.3.0
type CFLogsSchema struct { Date interface{} `json:"date"` Time interface{} `json:"time"` XEdgeLocation interface{} `json:"x-edge-location"` ScBytes interface{} `json:"sc-bytes"` CIp interface{} `json:"c-ip"` CsMethod interface{} `json:"cs-method"` CsHost interface{} `json:"cs(Host)"` CsUriStem interface{} `json:"cs-uri-stem"` ScStatus interface{} `json:"sc-status"` CsReferer interface{} `json:"cs(Referer)"` CsUserAgent interface{} `json:"cs(User-Agent)"` CsUriQuery interface{} `json:"cs-uri-query"` CsCookie interface{} `json:"cs(Cookie)"` XEdgeResultType interface{} `json:"x-edge-result-type"` XEdgeRequestId interface{} `json:"x-edge-request-id"` XHostHeader interface{} `json:"x-host-header"` CsProtocol interface{} `json:"cs-protocol"` CsBytes interface{} `json:"cs-bytes"` TimeTaken interface{} `json:"time-taken"` XForwardedFor interface{} `json:"x-forwarded-for"` SslProtocol interface{} `json:"ssl-protocol"` SslCipher interface{} `json:"ssl-cipher"` XEdgeResponseResultType interface{} `json:"x-edge-response-result-type"` CsProtocolVersion interface{} `json:"cs-protocol-version"` FleStatus interface{} `json:"fle-status"` FleEncryptedFields interface{} `json:"fle-encrypted-fields"` CPort interface{} `json:"c-port"` TimeToFirstByte interface{} `json:"time-to-first-byte"` XEdgeDetailedResultType interface{} `json:"x-edge-detailed-result-type"` ScContentType interface{} `json:"sc-content-type"` ScContentLen interface{} `json:"sc-content-len"` ScRangeStart interface{} `json:"sc-range-start"` ScRangeEnd interface{} `json:"sc-range-end"` }
func (*CFLogsSchema) UnmarshalJSON ¶ added in v0.3.0
func (schema *CFLogsSchema) UnmarshalJSON(b []byte) error
type CountOnlySchema ¶ added in v0.3.1
type CountOnlySchema struct {
Count int `json:"_1"`
}
type FormatType ¶ added in v0.3.0
type FormatType int
const ( FormatTypeJSON FormatType = iota FormatTypeCSV FormatTypeALBLogs FormatTypeCFLogs )
type QueryInfo ¶ added in v0.3.0
type QueryInfo struct { FormatType FormatType FieldDelimiter string RecordDelimiter string IsCountMode bool }
Click to show internal directories.
Click to hide internal directories.