request

package
v1.39.2 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	Endpoint string
	MD       metadata.MD
	// contains filtered or unexported fields
}

func NewBuilder

func NewBuilder(roundTripper RoundTripper, endpoint string) *Builder

func (*Builder) AppendMetadata

func (req *Builder) AppendMetadata(k string, v ...string) *Builder

func (*Builder) ApplicationId

func (req *Builder) ApplicationId(appId int) *Builder

func (*Builder) Do

func (req *Builder) Do(ctx context.Context) error

func (*Builder) JsonRequestBody

func (req *Builder) JsonRequestBody(reqBody any) *Builder

func (*Builder) JsonResponseBody

func (req *Builder) JsonResponseBody(respPtr any) *Builder

func (*Builder) Timeout

func (req *Builder) Timeout(timeout time.Duration) *Builder

type Middleware

type Middleware func(next RoundTripper) RoundTripper

type RoundTripper

type RoundTripper func(ctx context.Context, builder *Builder, message *isp.Message) (*isp.Message, error)

Jump to

Keyboard shortcuts

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