rest

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2021 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BodyWriter added in v0.9.0

type BodyWriter = gateway.BodyWriter

type Factory

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

func NewFactory

func NewFactory(
	onRequest RequestHandler,
	onResponse ResponseHandler,
) *Factory

func (*Factory) Get

func (f *Factory) Get() gateway.Proxy

func (*Factory) Release

func (f *Factory) Release(p gateway.Proxy)

type HeaderWriter added in v0.9.0

type HeaderWriter = gateway.HeaderWriter

type Request added in v0.9.0

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

func (*Request) Get added in v0.9.0

func (ctx *Request) Get(key string) interface{}

func (*Request) GetInt32 added in v0.9.0

func (ctx *Request) GetInt32(key string, defaultValue int32) int32

func (*Request) GetInt64 added in v0.9.0

func (ctx *Request) GetInt64(key string, defaultValue int64) int64

func (*Request) GetString added in v0.9.0

func (ctx *Request) GetString(key string, defaultValue string) string

func (*Request) MultiPart added in v0.9.0

func (ctx *Request) MultiPart() (*multipart.Form, error)

func (*Request) Set added in v0.9.0

func (ctx *Request) Set(key string, value interface{})

type RequestHandler added in v0.8.5

type RequestHandler func(ctx *Request, bodyWriter gateway.BodyWriter) error

type ResponseHandler added in v0.8.5

type ResponseHandler func(envelope *rony.MessageEnvelope, bodyWriter BodyWriter, hdrWriter *HeaderWriter)

Jump to

Keyboard shortcuts

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