jsonapi

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2017 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	Store      *root.Store
	CliContext *cli.Context
	Reader     io.Reader
	Writer     io.Writer
}

API type holding store and context

func (*API) ReadAndRespond

func (api *API) ReadAndRespond(ctx context.Context) error

ReadAndRespond a single message via stdin/stdout

func (*API) RespondError

func (api *API) RespondError(err error) error

RespondError sends err as JSON response via stdout

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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