torparse

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2018 License: CC0-1.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AtMostOnce

func AtMostOnce(e TorEntries) bool

func ExactlyOnce

func ExactlyOnce(e TorEntries) bool

Types

type TorDocument

type TorDocument TorEntriesMap

func ParseTorDocument

func ParseTorDocument(doc_data []byte) (docs []TorDocument, rest []byte)

TODO: trim/skip empty strings/separators

type TorEntries

type TorEntries []TorEntry

func (TorEntries) FJoined

func (entries TorEntries) FJoined() (joined []byte)

type TorEntriesMap

type TorEntriesMap map[string]TorEntries

type TorEntry

type TorEntry [][]byte

func ParseOutNextField

func ParseOutNextField(data []byte) (field string, content TorEntry, rest []byte, err error)

func (TorEntry) Joined

func (te TorEntry) Joined() (joined []byte)

Jump to

Keyboard shortcuts

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