jsonapi

package
v1.8.6 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2019 License: MIT Imports: 20 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
	Version semver.Version
}

API type holding store and context

func (*API) ReadAndRespond

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

ReadAndRespond a single message

func (*API) RespondError

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

RespondError sends err as JSON response

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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