Skip to content

Instantly share code, notes, and snippets.

@mandarjog
Created December 12, 2016 23:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mandarjog/3218053bebb0e3584becd67f71f5cafa to your computer and use it in GitHub Desktop.
Save mandarjog/3218053bebb0e3584becd67f71f5cafa to your computer and use it in GitHub Desktop.
AccessLogAspect
type (
AccessLogConfig struct {
// labels needed by this access Log entry
Attributes []string
// Template is implementation dependant
// For example textTemplate is " ${user.name} ${request.size}"
// it could also be the name of a protobuf
Template interface{}
}
AccessLogInput struct {
// which stream is this accessLog appeneded to
Stream string
// Attributes are passed in according to Config
Attributes map[string]AttributeValue
}
// Produces no mappable output
AccessLogOut struct {}
)
type (
TextAWSAccessLogAdapterConfig struct {
Access_Key string
Secret_Key string
Region string
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment