jsonapi

package
v1.7.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2018 License: MIT Imports: 17 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
	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