connection

package
v3.0.0-...-e1d3755 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

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

func NewConnection

func NewConnection(host string, httpClient *http.Client, headers map[string]string) *Connection

func (*Connection) RunREST

func (con *Connection) RunREST(ctx context.Context, path string, restMethod string, requestBody interface{}) (*ResponseData, error)

type ResponseData

type ResponseData struct {
	Body       []byte
	StatusCode int
}

func (*ResponseData) DecodeBodyIntoTarget

func (rd *ResponseData) DecodeBodyIntoTarget(target interface{}) error

Jump to

Keyboard shortcuts

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