Endpoint
type Endpoint struct { // contains filtered or unexported fields}Endpoint represents a real-time logging endpoint.
Methods
Write
View sourcefunc (e *Endpoint) Write(p []byte) (int, error)Write implements io.Writer, writing len(p) bytes from p to the endpoint. Returns the number of bytes written, and any error encountered. By contract, if n < len(p), the returned error will be non-nil.
Each call to Write produces a single log event.
Parameters
- p: []byte
Returns
(int, error)