Skip to content

Instantly share code, notes, and snippets.

@koolhead17
Last active October 12, 2016 13:53
Show Gist options
  • Save koolhead17/96f0eaf65c5a63d78a4912fe2fa2cd5d to your computer and use it in GitHub Desktop.
Save koolhead17/96f0eaf65c5a63d78a4912fe2fa2cd5d to your computer and use it in GitHub Desktop.
$ go run nats.go
2016/10/12 06:51:26 Connected
2016/10/12 06:51:26 Subscribing to subject 'bucketevents'
2016/10/12 06:51:33 Received message '{"EventType":"s3:ObjectCreated:Put","Key":"images/myphoto.jpg","Records":[{"eventVersion":"2.0","eventSource":"aws:s3","awsRegion":"us-east-1","eventTime":"2016-10-12T13:51:33Z","eventName":"s3:ObjectCreated:Put","userIdentity":{"principalId":"minio"},"requestParameters":{"sourceIPAddress":"[::1]:57106"},"responseElements":{},"s3":{"s3SchemaVersion":"1.0","configurationId":"Config","bucket":{"name":"images","ownerIdentity":{"principalId":"minio"},"arn":"arn:aws:s3:::images"},"object":{"key":"myphoto.jpg","size":56060,"eTag":"1d97bf45ecb37f7a7b699418070df08f","sequencer":"147CCD1AE054BFD0"}}}],"level":"info","msg":"","time":"2016-10-12T06:51:33-07:00"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment