app

package
v0.0.0-...-865bf36 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2015 License: LGPL-2.1 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoCommandDown

func DoCommandDown(input io.Reader, output JsonWriter, hash_prefix string) error

func DoCommandUp

func DoCommandUp(input io.Reader, output JsonWriter) error

func GetEventByPrefix

func GetEventByPrefix(doc *document.Document, hash_prefix string) (*document.Event, error)

func Main

func Main(argv []string, exit bool) error

Types

type CompactJsonWriter

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

func (CompactJsonWriter) Write

func (jw CompactJsonWriter) Write(data interface{}) error

type HashPrefixError

type HashPrefixError struct {
	Problem string
	Prefix  string
	Doc     *document.Document
}

func (HashPrefixError) Error

func (hpe HashPrefixError) Error() string

func (HashPrefixError) GetEventHashesAvailable

func (hpe HashPrefixError) GetEventHashesAvailable() []string

Return a sorted list of event hashes for printing.

type JsonWriter

type JsonWriter interface {
	Write(data interface{}) error
}

func NewJsonWriter

func NewJsonWriter(w io.Writer, pretty bool) JsonWriter

type PrettyJsonWriter

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

func (PrettyJsonWriter) Write

func (jw PrettyJsonWriter) Write(data interface{}) error

Jump to

Keyboard shortcuts

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