dfutil

package
v0.0.0-...-8b3eb0f Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FrameResponse

func FrameResponse(f Framer) backend.DataResponse

FrameResponse creates a backend.DataResponse that contains the Framer's data.Frames

func FrameResponseWithError

func FrameResponseWithError(f Framer, err error) backend.DataResponse

FrameResponseWithError creates a backend.DataResponse with the error's contents (if not nil), and the Framer's data.Frames This function is particularly useful if you have a function that returns `(Framer, error)`, which is a very common pattern

Types

type Framer

type Framer interface {
	Frames() data.Frames
}

Framer is an interface that allows any type to be treated as a data frame

Jump to

Keyboard shortcuts

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