http

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAccessToken

func GetAccessToken(retryClient *retryablehttp.Client, tokenUrl, clientId, clientSecret, audience string) (string, error)

func NewWebbaiClient

func NewWebbaiClient() api.Client

func SendRequestWithToken

func SendRequestWithToken(retryClient *retryablehttp.Client, url, token string, body []byte) (*http.Response, error)

Types

type WebbaiHttpClient

type WebbaiHttpClient struct {
	ClientId     string
	ClientSecret string
	AuthUrl      string
	ChangeUrl    string
	ResourceUrl  string
	MetricsUrl   string
	// contains filtered or unexported fields
}

func (*WebbaiHttpClient) SendChangeEvent

func (c *WebbaiHttpClient) SendChangeEvent(event *api.ChangeEvent) error

func (*WebbaiHttpClient) SendK8sResources

func (c *WebbaiHttpClient) SendK8sResources(list *api.ResourceList) error

func (*WebbaiHttpClient) SendTrafficMetrics

func (c *WebbaiHttpClient) SendTrafficMetrics(request *prompb.WriteRequest) error

Jump to

Keyboard shortcuts

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