Endpoint

Structin rtlogcompute-sdk-go v1.10.0View source
type Endpoint struct {
// contains filtered or unexported fields
}

Endpoint represents a real-time logging endpoint.

Methods

func (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)