Documentation ¶
Index ¶
- type AWSError
- type AWSLogsClient
- func (c *AWSLogsClient) DescribeLogGroups(limit *int64, prefix, nextToken *string) (*cloudwatchlogs.DescribeLogGroupsResponse, error)
- func (c *AWSLogsClient) DescribeLogStreams(limit *int64, logGroupName *string, prefix *string, sorting *LogStreamSorting, ...) (*cloudwatchlogs.DescribeLogStreamsResponse, error)
- func (c *AWSLogsClient) StreamLogEvents(params *GetLogsParams, ch chan *LogEvent, watch *bool)
- type GetLogsParams
- type LRU
- type LogEvent
- type LogStreamSorting
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSError ¶
type AWSError struct {
// contains filtered or unexported fields
}
AWSError is a wrapper for any AWS related errors
type AWSLogsClient ¶
type AWSLogsClient struct {
// contains filtered or unexported fields
}
AWSLogsClient wraps a cloudwatchlogs.Client
func NewAwsLogsClient ¶
func NewAwsLogsClient() (*AWSLogsClient, error)
NewAwsLogsClient creates a new AWSLogsClient
func (*AWSLogsClient) DescribeLogGroups ¶
func (c *AWSLogsClient) DescribeLogGroups(limit *int64, prefix, nextToken *string) (*cloudwatchlogs.DescribeLogGroupsResponse, error)
DescribeLogGroups is a wrapper of AWS API describe-log-groups
func (*AWSLogsClient) DescribeLogStreams ¶
func (c *AWSLogsClient) DescribeLogStreams(limit *int64, logGroupName *string, prefix *string, sorting *LogStreamSorting, nextToken *string) (*cloudwatchlogs.DescribeLogStreamsResponse, error)
DescribeLogStreams is a wrapper of AWS API describe-log-streams
func (*AWSLogsClient) StreamLogEvents ¶
func (c *AWSLogsClient) StreamLogEvents(params *GetLogsParams, ch chan *LogEvent, watch *bool)
StreamLogEvents streams the log events to the given channel
type GetLogsParams ¶
type GetLogsParams struct { Limit *int64 StartTime *int64 EndTime *int64 LogGroupName *string LogStreamNames []string }
GetLogsParams represents the parameters of function StreamLogEvents
type LRU ¶
type LRU struct {
// contains filtered or unexported fields
}
LRU is a simplified version of golang-lru from hashicorp see: https://github.com/hashicorp/golang-lru
type LogEvent ¶
type LogEvent struct { Message string EventID string GroupName string StreamName string Error error }
LogEvent represents an AWS log event
type LogStreamSorting ¶
type LogStreamSorting struct { Descending *bool OrderBy cloudwatchlogs.OrderBy }
LogStreamSorting represents the arguments for sorting of log streams
Click to show internal directories.
Click to hide internal directories.