binder

package
v0.10.6 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2026 License: Apache-2.0 Imports: 2 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 struct {
	ValidateError error // Error to return from Validate method
}

Binder provides a mock implementation of the Binder interface for testing.

func NewBinder

func NewBinder() *Binder

NewBinder creates a new mock binder.

func NewBinderWithValidateError

func NewBinderWithValidateError(err error) *Binder

NewBinderWithValidateError creates a new mock binder that returns the specified error from Validate.

func (*Binder) Bind

func (m *Binder) Bind(request *protocol.Request, i interface{}, params param.Params) error

func (*Binder) BindAndValidate

func (m *Binder) BindAndValidate(request *protocol.Request, i interface{}, params param.Params) error

func (*Binder) BindForm

func (m *Binder) BindForm(request *protocol.Request, i interface{}) error

func (*Binder) BindHeader

func (m *Binder) BindHeader(request *protocol.Request, i interface{}) error

func (*Binder) BindJSON

func (m *Binder) BindJSON(request *protocol.Request, i interface{}) error

func (*Binder) BindPath

func (m *Binder) BindPath(request *protocol.Request, i interface{}, params param.Params) error

func (*Binder) BindProtobuf

func (m *Binder) BindProtobuf(request *protocol.Request, i interface{}) error

func (*Binder) BindQuery

func (m *Binder) BindQuery(request *protocol.Request, i interface{}) error

func (*Binder) Name

func (m *Binder) Name() string

func (*Binder) Validate

func (m *Binder) Validate(request *protocol.Request, i interface{}) error

Jump to

Keyboard shortcuts

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