render

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2018 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DataCount

func DataCount(body []byte) (int, error)

func Fixed64Encode added in v0.5.1

func Fixed64Encode(x uint64) []byte

func ProtobufWriteDouble added in v0.5.1

func ProtobufWriteDouble(w io.Writer, value float64)

func ProtobufWriteDoubleN added in v0.5.1

func ProtobufWriteDoubleN(w io.Writer, value float64, n int)

func ReadUvarint

func ReadUvarint(array []byte) (uint64, int, error)

func SelectDataTable added in v0.6.0

func SelectDataTable(cfg *config.Config, from int64, until int64, targets []string) (string, bool)

func VarintEncode added in v0.5.1

func VarintEncode(x uint64) []byte

func VarintLen added in v0.5.1

func VarintLen(x uint64) uint64

func VarintWrite added in v0.5.1

func VarintWrite(w io.Writer, x uint64)

func WriteByteN added in v0.5.1

func WriteByteN(w *bufio.Writer, value byte, n int)

Types

type Data

type Data struct {
	Points []point.Point

	Aliases map[string][]string
	// contains filtered or unexported fields
}

func DataParse

func DataParse(body []byte, extraPoints []point.Point, isReverse bool) (*Data, error)

func (*Data) Len

func (d *Data) Len() int

func (*Data) Less

func (d *Data) Less(i, j int) bool

func (*Data) NameToID

func (d *Data) NameToID(name string) int

func (*Data) Swap

func (d *Data) Swap(i, j int)

type Handler

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

func NewHandler

func NewHandler(config *config.Config) *Handler

func (*Handler) Reply

func (h *Handler) Reply(w http.ResponseWriter, r *http.Request, data *Data, from, until int32, prefix string)

func (*Handler) ReplyPickle

func (h *Handler) ReplyPickle(w http.ResponseWriter, r *http.Request, data *Data, from, until int32, prefix string)

func (*Handler) ReplyProtobuf

func (h *Handler) ReplyProtobuf(w http.ResponseWriter, r *http.Request, data *Data, from, until int32, prefix string)

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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