Back to godoc.org

Package jsonapi

v1.8.6
Latest Go to latest
Published: Jul 26, 2019 | License: MIT | Module: github.com/justwatchcom/gopass

Index

Package Files

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

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier