resource

package
v0.77.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2020 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Overview

Package resource provides utils for handling resource calls.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendJSON

func SendJSON(sender backend.CallResourceResponseSender, obj interface{}) error

SendJSON sends a JSON response.

func SendPlainText

func SendPlainText(sender backend.CallResourceResponseSender, text string) error

SendPlainText sends a plain text response.

Types

This section is empty.

Directories

Path Synopsis
Package httpadapter provides support for handling resource calls using an http.Handler.
Package httpadapter provides support for handling resource calls using an http.Handler.

Jump to

Keyboard shortcuts

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