Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*config)
func WithDuration ¶
WithDuration sets the duration to read logs. Default is 10 minutes.
func WithHTTPClient ¶
func WithHTTPClient(httpClient interfaces.HTTPClient) Option
WithHTTPClient sets a HTTP client to send requests to Slack API.
func WithLimit ¶
WithLimit sets the number of logs to read in a single request. If it's set to 0 or negative value, "limit" parameter is not included in the request. Default is 1000.
func WithMaxPages ¶
WithMaxPages sets the maximum number of pages to read. Default is 0, which means it reads logs until there are no more logs.
Click to show internal directories.
Click to hide internal directories.