httpclient

package
v0.0.0-...-2f747c7 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	PostRequest(ctx context.Context, payload interface{}) error
}

func NewHTTPClient

func NewHTTPClient(logger *zap.Logger, baseURL string, timeout time.Duration) Client

type HTTPClient

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

func (*HTTPClient) PostRequest

func (c *HTTPClient) PostRequest(ctx context.Context, payload interface{}) error

Jump to

Keyboard shortcuts

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