Documentation
¶
Index ¶
Constants ¶
View Source
const AWSIPRangesURL = "https://ip-ranges.amazonaws.com/ip-ranges.json"
Variables ¶
This section is empty.
Functions ¶
func DiscardAfterClose ¶
func DiscardAfterClose(wc io.WriteCloser) io.WriteCloser
DiscardAfterClose is an io.WriteCloser that discards writes after it is closed without errors. It is useful as a target for a slog.Sink such that an underlying WriteCloser, like a file, can be cleaned up without race conditions from still-active loggers.
Types ¶
type AWSIPRanges ¶ added in v2.15.0
func FetchAWSIPRanges ¶ added in v2.15.0
func FetchAWSIPRanges(ctx context.Context, url string) (*AWSIPRanges, error)
Click to show internal directories.
Click to hide internal directories.