http

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2019 License: Apache-2.0 Imports: 18 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 ClientLoopback

func ClientLoopback(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)

Types

type ConversionTest

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

type ConversionTestCases

type ConversionTestCases map[string]ConversionTest

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