Documentation ¶
Index ¶
- func DoCommandDown(input io.Reader, output JsonWriter, hash_prefix string) error
- func DoCommandUp(input io.Reader, output JsonWriter) error
- func GetEventByPrefix(doc *document.Document, hash_prefix string) (*document.Event, error)
- func Main(argv []string, exit bool) error
- type CompactJsonWriter
- type HashPrefixError
- type JsonWriter
- type PrettyJsonWriter
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 ¶
Types ¶
type CompactJsonWriter ¶
type CompactJsonWriter struct {
// contains filtered or unexported fields
}
func (CompactJsonWriter) Write ¶
func (jw CompactJsonWriter) Write(data interface{}) error
type HashPrefixError ¶
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
Click to show internal directories.
Click to hide internal directories.