unmarshal

package
v3.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodePushRequest

func DecodePushRequest(b io.Reader, r *logproto.PushRequest) error

DecodePushRequest directly decodes json to a logproto.PushRequest

func ReadTailResponseJSON

func ReadTailResponseJSON(r *loghttp.TailResponse, reader WebsocketReader) error

ReadTailResponseJSON unmarshals the loghttp.TailResponse from a websocket reader.

Types

type WebsocketReader

type WebsocketReader interface {
	ReadMessage() (int, []byte, error)
}

WebsocketReader knows how to read message to a websocket connection.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL