gopass: github.com/justwatchcom/gopass/pkg/jsonapi Index | Files | Directories

package jsonapi

import "github.com/justwatchcom/gopass/pkg/jsonapi"

Index

Package Files

api.go helpers.go messages.go responses.go

type API Uses

type API struct {
    Store   *root.Store
    Reader  io.Reader
    Writer  io.Writer
    Version semver.Version
}

API type holding store and context

func (*API) ReadAndRespond Uses

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

ReadAndRespond a single message

func (*API) RespondError Uses

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

RespondError sends err as JSON response

Directories

PathSynopsis
manifest

Package jsonapi imports 20 packages (graph). Updated 2019-07-17. Refresh now. Tools for package owners.