request

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// NonValidatePbJSONBinding is a PbJSONBinding without validation.
	NonValidatePbJSONBinding = PbJSONBinding{
								// contains filtered or unexported fields
	}
	// ValidatePbJSONBinding is a PbJSONBinding with validation.
	ValidatePbJSONBinding = PbJSONBinding{
							// contains filtered or unexported fields
	}
)

Functions

func MarshallPb

func MarshallPb(m proto.Message) ([]byte, error)

Types

type PbJSONBinding

type PbJSONBinding struct {
	// contains filtered or unexported fields
}

func (PbJSONBinding) Bind

func (b PbJSONBinding) Bind(req *http.Request, obj interface{}) error

func (PbJSONBinding) BindBody

func (b PbJSONBinding) BindBody(body []byte, obj interface{}) error

func (PbJSONBinding) Name

func (b PbJSONBinding) Name() string

Jump to

Keyboard shortcuts

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