Skip to content

Instantly share code, notes, and snippets.

@bschaeffer
Last active July 10, 2020 13:16
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 bschaeffer/909c51c4d9483cf77fa59004c65fea4f to your computer and use it in GitHub Desktop.
Save bschaeffer/909c51c4d9483cf77fa59004c65fea4f to your computer and use it in GitHub Desktop.
type clientConfig struct {
// Number of worker goroutines publishing log events
Workers int `config:"workers" validate:"min=1"`
// Max number of events in a batch to send to a single client
BatchSize int `config:"batch_size" validate:"min=1"`
// Max number of retries for single batch of events
RetryLimit int `config:"retry_limit"`
// The endpoint our client should be POSTing to
Endpoint string `config:"endpoint"`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment