Documentation
¶
Index ¶
- Constants
- func GetParamsMap(u interface{}) map[string]string
- type ApiClient
- func (apiClient *ApiClient) Delete(relUrl string, resultModel interface{}, ...) error
- func (apiClient *ApiClient) Get(relUrl string, resultModel interface{}, ...) error
- func (apiClient *ApiClient) Post(relUrl string, resultModel interface{}, ...) error
- func (apiClient *ApiClient) Put(relUrl string, resultModel interface{}, ...) error
- type BitmovinError
- type PathParams
- type QueryParams
- type RequestParams
Constants ¶
View Source
const ApiClientName = "bitmovin-api-sdk-go"
View Source
const ApiClientVersion = "1.12.0-alpha.1"
View Source
const ContentTypeJson = "application/json"
View Source
const DefaultApiBaseUrl = "https://api.bitmovin.com/v1"
View Source
const NoApiKeyErrorMsg = "there was no api key provided"
View Source
const QueryParamTagName = "query"
Variables ¶
This section is empty.
Functions ¶
func GetParamsMap ¶
Types ¶
type ApiClient ¶
type ApiClient struct {
Logger log.Logger
BaseUrl string
ApiKey string
TenantOrgId string
// contains filtered or unexported fields
}
func NewApiClient ¶
func (*ApiClient) Delete ¶
func (apiClient *ApiClient) Delete(relUrl string, resultModel interface{}, requestParams ...func(params *RequestParams)) error
func (*ApiClient) Get ¶
func (apiClient *ApiClient) Get(relUrl string, resultModel interface{}, requestParams ...func(params *RequestParams)) error
type BitmovinError ¶
type BitmovinError struct {
Code *int32
Message *string
DeveloperMessage *string
Details []model.Message
Links []model.Link
}
func (BitmovinError) Error ¶
func (e BitmovinError) Error() string
type PathParams ¶
type PathParams map[string]interface{}
type QueryParams ¶
type RequestParams ¶
type RequestParams struct {
PathParams PathParams
QueryParams QueryParams
}
Click to show internal directories.
Click to hide internal directories.