http

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: MIT Imports: 3 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 struct {
	// contains filtered or unexported fields
}

func (Client) DeleteMarshalReturnObj

func (h Client) DeleteMarshalReturnObj(url string, obj any) error

func (Client) GetMarshalReturnObj

func (h Client) GetMarshalReturnObj(url string, obj any) error

type IHttpClient

type IHttpClient interface {
	GetMarshalReturnObj(url string, obj any) error
	DeleteMarshalReturnObj(url string, obj any) error
}

func New

func New(o Option) (IHttpClient, error)

type Option

type Option struct {
	BasicAuth struct {
		Username string
		Password string
	}
	TokenSource      oauth2.TokenSource
	AllowInsecureSSL bool
}

Directories

Path Synopsis
Package mock_http is a generated GoMock package.
Package mock_http is a generated GoMock package.

Jump to

Keyboard shortcuts

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