httputil

package
v0.0.0-...-c2832fb Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2016 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const BinaryLogContentType = "application/vnd.vektra-binarylog"
View Source
const TextLogContentType = "application/vnd.vektra-textlog"

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONLogStreamer

type JSONLogStreamer struct {
	// contains filtered or unexported fields
}

func JSONStreamer

func JSONStreamer(w io.Writer) *JSONLogStreamer

func (*JSONLogStreamer) HandleMessage

func (h *JSONLogStreamer) HandleMessage(m *cypress.Message) error

type KVLogStreamer

type KVLogStreamer struct {
	// contains filtered or unexported fields
}

func (*KVLogStreamer) HandleMessage

func (h *KVLogStreamer) HandleMessage(m *cypress.Message) error

type LogHandler

type LogHandler interface {
	HandleMessage(m *cypress.Message) error
}

func EstablishHandler

func EstablishHandler(req *http.Request, w http.ResponseWriter) LogHandler

func PickFromRequest

func PickFromRequest(req *http.Request, w io.Writer) LogHandler

type MsgpackLogStreamer

type MsgpackLogStreamer struct {
	// contains filtered or unexported fields
}

func MsgpackStreamer

func MsgpackStreamer(w io.Writer) *MsgpackLogStreamer

func (*MsgpackLogStreamer) HandleMessage

func (h *MsgpackLogStreamer) HandleMessage(m *cypress.Message) error

type ProtobufLogStreamer

type ProtobufLogStreamer struct {
	// contains filtered or unexported fields
}

func (*ProtobufLogStreamer) HandleMessage

func (h *ProtobufLogStreamer) HandleMessage(m *cypress.Message) error

Jump to

Keyboard shortcuts

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