velodrome/transform/plugins/author_logger_wrapper.go
func (a *AuthorLoggerPluginWrapper) ReceiveComment(comment sql.Comment) []Point {
	points := a.plugin.ReceiveComment(comment)

	if a.enabled {
		for i := range points {
			if points[i].Values == nil {
				points[i].Values = map[string]interface{}{}
			}
			points[i].Values["author"] = comment.User
		}
	}

	return points
}
func (a *AuthorLoggerPluginWrapper) ReceiveComment(comment sql.Comment) []Point {
	points := a.plugin.ReceiveComment(comment)

	if a.enabled {
		for i := range points {
			if points[i].Values == nil {
				points[i].Values = map[string]interface{}{}
			}
			points[i].Values["author"] = comment.User
		}
	}

	return points
}
func ( a * AuthorLoggerPluginWrapper ) ReceiveComment ( comment sql . Comment ) [ ] Point { points := a . plugin . ReceiveComment ( comment ) if a . enabled { for i := range points { if points [ i ] . Values == nil { points [ i ] . Values = map [ string ] interface { } { } } points [ i ] . Values [ " " ] = comment . User } } return points }
// ReceiveComment is a wrapper on plugin.ReceiveComment() logging the author
ReceiveComment is a wrapper on plugin . ReceiveComment () logging the author