common

package
v1.14.3-alpha.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2019 License: MIT Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const ApiClientName = "bitmovin-api-sdk-go"
View Source
const ApiClientVersion = "1.14.3-alpha.0"
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

func GetParamsMap(u interface{}) map[string]string

Types

type ApiClient

type ApiClient struct {
	Logger      log.Logger
	BaseUrl     string
	ApiKey      string
	TenantOrgId string
	// contains filtered or unexported fields
}

func NewApiClient

func NewApiClient(configs ...func(configuration *ApiClient)) (*ApiClient, error)

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

func (*ApiClient) Post

func (apiClient *ApiClient) Post(relUrl string, resultModel interface{}, requestParams ...func(params *RequestParams)) error

func (*ApiClient) Put

func (apiClient *ApiClient) Put(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 QueryParams interface {
	Params() map[string]string
}

type RequestParams

type RequestParams struct {
	PathParams  PathParams
	QueryParams QueryParams
}

Jump to

Keyboard shortcuts

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