code: func (c *Config) defaults() {
  	if c.Client == nil {
  		c.Client = k.New(session.New(aws.NewConfig()))
  	}
  
  	if c.Logger == nil {
  		c.Logger = log.Log
  	}
  
  	c.Logger = c.Logger.WithFields(log.Fields{
  		"package": "kinesis",
  	})
  
  	if c.StreamName == "" {
  		c.Logger.Fatal("StreamName required")
  	}
  
  	c.Logger = c.Logger.WithFields(log.Fields{
  		"stream": c.StreamName,
  	})
  
  	if c.BufferSize == 0 {
  		c.BufferSize = maxRecordsPerRequest
  	}
  
  	if c.BufferSize > maxRecordsPerRequest {
  		c.Logger.Fatal("BufferSize exceeds 500")
  	}
  
  	if c.BacklogSize == 0 {
  		c.BacklogSize = maxRecordsPerRequest
  	}
  
  	if c.FlushInterval == 0 {
  		c.FlushInterval = time.Second
  	}
  }
docs: // defaults for configuration.