soap

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	ServiceUrl() string

	Post(ctx context.Context, action, url string, body interface{}, bindTo interface{}) (int, error)
	PostRaw(ctx context.Context, action, url string, payload []byte, bindTo interface{}) (int, error)
	PostWithRawResult(ctx context.Context, action, url string, payload []byte, bindTo interface{}) (int, []byte, error)
	PostWithLargeResult(ctx context.Context, action, url string, payload []byte) (int, io.Reader, error)

	WithCircuitBreaker(
		maxRequest uint32, interval time.Duration,
		timeout time.Duration,
	) Manager
	// contains filtered or unexported methods
}

func New

func New(opts ...Option) Manager

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithBasicAuth

func WithBasicAuth(user, pass string) Option

func WithLargeContentTimeout

func WithLargeContentTimeout(v time.Duration) Option

func WithLogger

func WithLogger(l logger.Manager) Option

func WithMetrics

func WithMetrics(enabled bool, metric telemetry.MetricsManager) Option

func WithName

func WithName(v string) Option

func WithServiceUrl

func WithServiceUrl(url string) Option

func WithTransport

func WithTransport(t ...TransportOption) Option

type Transport

type Transport interface {
	RoundTrip(request *http.Request) (*http.Response, error)
}

func NewTransport

func NewTransport(opts ...TransportOption) Transport

type TransportOption

type TransportOption interface {
	// contains filtered or unexported methods
}

func WithTelemetry

func WithTelemetry(tm telemetry.Manager) TransportOption

func WithTransportName

func WithTransportName(name string) TransportOption

Jump to

Keyboard shortcuts

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