http

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlwaysThen

func AlwaysThen(then time.Time) client.EventDefaulter

func ClientConversion

func ClientConversion(t *testing.T, tc ConversionTest, topts ...cehttp.Option)

func ClientDirect added in v0.10.0

func ClientDirect(t *testing.T, tc DirectTapTest, topts ...cehttp.Option)

func ClientLoopback

func ClientLoopback(t *testing.T, tc TapTest, topts ...cehttp.Option)

func ClientMiddleware added in v0.10.0

func ClientMiddleware(t *testing.T, tc TapTest, topts ...cehttp.Option)

func NewTap

func NewTap() *tapHandler

func UnitTestConvert

func UnitTestConvert(ctx context.Context, m transport.Message, err error) (*cloudevents.Event, error)

func UnitTestConvertNilNil added in v0.10.0

func UnitTestConvertNilNil(context.Context, transport.Message, error) (*cloudevents.Event, error)

Types

type ConversionTest

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

type ConversionTestCases

type ConversionTestCases map[string]ConversionTest

type DirectTapTest added in v0.10.0

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

type DirectTapTestCases added in v0.10.0

type DirectTapTestCases map[string]DirectTapTest

type TapTest

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

type TapTestCases

type TapTestCases map[string]TapTest

type TapValidation

type TapValidation struct {
	Method        string
	URI           string
	Header        http.Header
	Body          string
	Status        string
	ContentLength int64
}

Jump to

Keyboard shortcuts

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