types

package
v1.67.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: Apache-2.0, BSD-3-Clause, Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandlerOperationArgs

type HandlerOperationArgs struct {
	// ClientIP corresponds to the address `http.client_ip`
	ClientIP netip.Addr
	// Headers corresponds to the address `server.request.headers.no_cookies`
	Headers map[string][]string
	// Cookies corresponds to the address `server.request.cookies`
	Cookies map[string][]string
	// Query corresponds to the address `server.request.query`
	Query map[string][]string
	// PathParams corresponds to the address `server.request.path_params`
	PathParams map[string]string
	// Method is the http method verb of the request, address is `server.request.method`
	Method string
	// RequestURI corresponds to the address `server.request.uri.raw`
	RequestURI string
}

HandlerOperationArgs is the HTTP handler operation arguments.

func (HandlerOperationArgs) IsArgOf

func (HandlerOperationArgs) IsArgOf(*Operation)

type HandlerOperationRes

type HandlerOperationRes struct {
	Headers map[string][]string
	// Status corresponds to the address `server.response.status`.
	Status int
}

HandlerOperationRes is the HTTP handler operation results.

func (HandlerOperationRes) IsResultOf

func (HandlerOperationRes) IsResultOf(*Operation)

type Operation

type Operation struct {
	dyngo.Operation
	trace.TagsHolder
	trace.SecurityEventsHolder
	// contains filtered or unexported fields
}

Operation type representing an HTTP operation. It must be created with StartOperation() and finished with its Finish().

func (*Operation) Finish

func (op *Operation) Finish(res HandlerOperationRes) []any

Finish the HTTP handler operation, along with the given results and emits a finish event up in the operation stack.

type RoundTripOperation added in v1.65.0

type RoundTripOperation struct {
	dyngo.Operation
}

Operation type representing an HTTP operation. It must be created with StartOperation() and finished with its Finish().

type RoundTripOperationArgs added in v1.65.0

type RoundTripOperationArgs struct {
	// URL corresponds to the address `server.io.net.url`.
	URL string
}

RoundTripOperationArgs is the round trip operation arguments.

func (RoundTripOperationArgs) IsArgOf added in v1.65.0

type RoundTripOperationRes added in v1.65.0

type RoundTripOperationRes struct{}

RoundTripOperationRes is the round trip operation results.

func (RoundTripOperationRes) IsResultOf added in v1.65.0

type SDKBodyOperation

type SDKBodyOperation struct {
	dyngo.Operation
}

SDKBodyOperation type representing an SDK body

func (*SDKBodyOperation) Finish

func (op *SDKBodyOperation) Finish()

Finish finishes the SDKBody operation and emits a finish event

type SDKBodyOperationArgs

type SDKBodyOperationArgs struct {
	// Body corresponds to the address `server.request.body`.
	Body any
}

SDKBodyOperationArgs is the SDK body operation arguments.

func (SDKBodyOperationArgs) IsArgOf

type SDKBodyOperationRes

type SDKBodyOperationRes struct{}

SDKBodyOperationRes is the SDK body operation results.

func (SDKBodyOperationRes) IsResultOf

Jump to

Keyboard shortcuts

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