resource

package
v0.223.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 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