Documentation ¶
Index ¶
- func CheckTagExists(tags []models.ExperimentTag, key, value string) bool
- func GetDatabaseUri() string
- func GetServiceUri() string
- func StrReplace(str string, original []string, replacement []interface{}) string
- type HttpClient
- func (c HttpClient) DoDeleteRequest(uri string, response interface{}) error
- func (c HttpClient) DoGetRequest(uri string, response interface{}) error
- func (c HttpClient) DoPostRequest(uri string, request interface{}, response interface{}) error
- func (c HttpClient) DoStreamRequest(method, uri string) ([]byte, error)
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.