bind

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Binder

type Binder interface {
	BindRequest(c echo.Context, v interface{}) error
	WriteResponse(c echo.Context, code int, v interface{}) error
	Marshal(compress string, v interface{}) ([]byte, error)
	Peer() key.MachinePublic
}

type Factory

type Factory func(c echo.Context) (Binder, error)

func BoxBinder

func BoxBinder(controlKey key.MachinePrivate) Factory

func DefaultBinder

func DefaultBinder(machineKey key.MachinePublic) Factory

Jump to

Keyboard shortcuts

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