()
| 10 | ) |
| 11 | |
| 12 | func ExampleKinesisEvent() { |
| 13 | lambda.Start(func(ctx context.Context, kinesisEvent *events.KinesisEvent) error { |
| 14 | for _, record := range kinesisEvent.Records { |
| 15 | kinesisRecord := record.Kinesis |
| 16 | dataBytes := kinesisRecord.Data |
| 17 | dataText := string(dataBytes) |
| 18 | |
| 19 | fmt.Printf("%s Data = %s \n", record.EventName, dataText) |
| 20 | } |
| 21 | |
| 22 | return nil |
| 23 | }) |
| 24 | } |
| 25 | |
| 26 | // This example transforms Kinesis Firehose records by converting the data to uppercase. |
| 27 | func ExampleKinesisFirehoseEvent() { |
nothing calls this directly
no test coverage detected
searching dependent graphs…