Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Multiplexer ¶
Multiplexer implements `http.Handler`.
func NewMultiplexer ¶
func NewMultiplexer(logger *zap.Logger, ingestFn ingestFunc, lokiEndpoint, defaultDataset, datasetKey string) (*Multiplexer, error)
NewMultiplexer creates a new Multiplexer which uses the passed Axiom client to send logs to Axiom.
func (*Multiplexer) ServeHTTP ¶
func (m *Multiplexer) ServeHTTP(resp http.ResponseWriter, req *http.Request)
ServeHTTP implements `http.Handler`.
type PushRequest ¶
type PushRequest struct {
Streams []Stream
}
func DecodeJSONPushRequest ¶
func DecodeJSONPushRequest(b io.Reader) (*PushRequest, error)
func DecodeProtoPushRequest ¶
func DecodeProtoPushRequest(r io.Reader) (*PushRequest, error)
Click to show internal directories.
Click to hide internal directories.