helpers

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckTagExists

func CheckTagExists(tags []models.ExperimentTag, key, value string) bool

func GetDatabaseUri

func GetDatabaseUri() string

func GetServiceUri

func GetServiceUri() string

func StrReplace

func StrReplace(str string, original []string, replacement []interface{}) string

StrReplace makes replacing of multiple placeholders by theirs values in a string.

Types

type HttpClient

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

HttpClient represents HTTP client.

func NewAimApiClient

func NewAimApiClient(baseURL string) *HttpClient

NewAimApiClient creates new HTTP client for the aim api

func NewMlflowApiClient

func NewMlflowApiClient(baseURL string) *HttpClient

NewMlflowApiClient creates new HTTP client for the mlflow api

func (HttpClient) DoDeleteRequest

func (c HttpClient) DoDeleteRequest(uri string, response interface{}) error

DoDeleteRequest do DELETE request.

func (HttpClient) DoGetRequest

func (c HttpClient) DoGetRequest(uri string, response interface{}) error

DoGetRequest do GET request.

func (HttpClient) DoPostRequest

func (c HttpClient) DoPostRequest(uri string, request interface{}, response interface{}) error

DoPostRequest do POST request.

func (HttpClient) DoStreamRequest

func (c HttpClient) DoStreamRequest(method, uri string) ([]byte, error)

DoStreamRequest do stream request.

Jump to

Keyboard shortcuts

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