http

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: MIT Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AfterRequestPlugin

type AfterRequestPlugin interface {
	Handle(ctx context.Context, req *http.Request, resp *http.Response) error
}

type BeforeRequestPlugin

type BeforeRequestPlugin interface {
	Handle(ctx context.Context, req *http.Request) error
}

type Client

type Client interface {
	Send(ctx context.Context, serviceName string, request Request, response *Response) (err error)
}

type JaegerBeforePlugin

type JaegerBeforePlugin struct{}

func (*JaegerBeforePlugin) Handle

func (*JaegerBeforePlugin) Handle(ctx context.Context, req *http.Request) error

type Request

type Request struct {
	URI    string
	Method string
	Header http.Header
	Body   interface{}
	Codec  codec.Codec
}

type Response

type Response struct {
	HTTPCode int
	Body     interface{}
	Codec    codec.Codec
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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