Introduce Write*WithContext methods and support passing in contexts
Introduce Write*WithContext methods and support passing in contexts

This should allow clients to specify deadlines and timeouts (and
allow them manual cancelation).

fuyufjh/splunk-hec-go