bind

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: BSD-3-Clause Imports: 10 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