jtop

package
v0.0.0-...-4c29529 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encode

func Encode(msg *metadata.Message, data []byte) ([]byte, error)

Types

type Encoder

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

type Iter

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

func NewIter

func NewIter(b []byte) *Iter

func (*Iter) Bytes

func (i *Iter) Bytes() []byte

func (*Iter) Consume

func (i *Iter) Consume() *Token

func (*Iter) ConsumeKind

func (i *Iter) ConsumeKind() TokenKind

func (*Iter) Next

func (i *Iter) Next() bool

func (*Iter) SetBuf

func (i *Iter) SetBuf(b []byte)

func (*Iter) TopKind

func (i *Iter) TopKind() TokenKind

type Token

type Token struct {
	Kind  TokenKind
	Value []byte
}

func (*Token) String

func (t *Token) String() string

type TokenKind

type TokenKind uint8
const (
	Invalid TokenKind = iota + 0
	Null
	False
	True
	Number
	String
	ObjectBegin
	ObjectEnd
	ArrayBegin
	ArrayEnd
	Comma
	Colon
)

Jump to

Keyboard shortcuts

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