jsonapi

package
v1.15.13 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: MIT Imports: 23 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   gopass.Store
	Reader  io.Reader
	Writer  io.Writer
	Version semver.Version
}

API type holding store and context.

func New added in v1.15.3

func New(s gopass.Store, r io.Reader, w io.Writer, v semver.Version) *API

New creates a new instance of the JSON API.

func (*API) SendErrorResponse added in v1.15.3

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

SendErrorResponse sends err as JSON response.

func (*API) ServeMessage added in v1.15.3

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

ServeMessage processes a single message.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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