util

package
v1.0.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// MaxEvents represents the maximum events can to retrieve.
	MaxEvents = int64(20)
)

Functions

func ConvertOrNil added in v1.0.9

func ConvertOrNil[T, U Number](val *T) *U

func EventsFromDescribe

func EventsFromDescribe(
	resp *svcsdk.DescribeEventsOutput,
) []*svcapitypes.Event

EventsFromDescribe returns a slice of Event structs given the Output response shape from a DescribeEventsWithContext call

func NewDescribeEventsInput

func NewDescribeEventsInput(
	sourceName string,
	sourceType svcsdktypes.SourceType,
	maxResults int64,
) *svcsdk.DescribeEventsInput

Types

type Number added in v1.0.9

type Number interface {
	int | int8 | int16 | int32 | int64
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL