Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIClient ¶
type APIClient struct {
AuthAPI *AuthAPI
// contains filtered or unexported fields
}
APIClient manages communication with the Auth API API v0.0.1 endpoints.
func NewAPIClient ¶
NewAPIClient creates a new API client. If nil is provided for the httpClient
func (*APIClient) AddInterceptor ¶
func (c *APIClient) AddInterceptor(interceptor InterceptFunc)
AddInterceptor adds an interceptor to the APIClient
type Config ¶
type Config struct {
BasePath string `json:"basePath,omitempty" yaml:"basePath,omitempty"`
Host string `json:"host,omitempty" yaml:"host,omitempty"`
Headers map[string]string `yaml:"headers,omitempty" json:"headers,omitempty"`
UserAgent string `json:"userAgent,omitempty" yaml:"userAgent,omitempty"`
HTTPClient *http.Client
}
Config stores configuration for API client
type Domain ¶
type Domain struct {
ID int `json:"id,omitempty"`
LocalCurrency string `json:"local_currency,omitempty"`
Name string `json:"name,omitempty"`
ParentCurrency string `json:"parent_currency,omitempty"`
// ParentID the top-level parent domain id
ParentID int `json:"parent_id,omitempty"`
// ParentName the top-level parent domain name
ParentName string `json:"parent_name,omitempty"`
}
type ErrorResponse ¶
type ErrorResponse struct {
Errors []*Error `json:"errors,omitempty"`
}
type GetDomainRequest ¶
type GetDomainRequest struct {
OrgID int `binding:"required" form:"orgID"`
}
GetDomainRequest is the request object for (GET /org/domain)
Click to show internal directories.
Click to hide internal directories.