Documentation
¶
Index ¶
- Constants
- func CreateAppClient(service *Service, major int, config *Config) *gentleman.Client
- func CreateExternalClient(url string, config *Config) *gentleman.Client
- func CreateGenericClient(url string, service *Service, config *Config, clientType ClientType) *gentleman.Client
- func CreateInfraClient(service *Service, config *Config) *gentleman.Client
- func CreatePlatformClient(config *Config) *gentleman.Client
- func GetCredential(request *http.Request) string
- func UserAgentName(config *Config) string
- type CallTree
- type ClientType
- type Config
- type ErrorDescriptor
- type IOHeadersRecorder
- func (r *IOHeadersRecorder) AddResponseHeaders(out http.Header)
- func (r *IOHeadersRecorder) BeforeDial(req *http.Request)
- func (r *IOHeadersRecorder) ClearSmartCacheHeaders()
- func (r *IOHeadersRecorder) CopyFrom(other *IOHeadersRecorder)
- func (r *IOHeadersRecorder) Record(req *http.Request, res *http.Response, responseTime time.Duration)
- type NoUserAgentError
- type RequestRecorder
- type ResponseError
- type Service
Constants ¶
View Source
const ( MasterWorkspace = "master" HeaderETag = "ETag" )
View Source
const ( AppClient = iota InfraClient PlatformClient ExternalClient )
Variables ¶
This section is empty.
Functions ¶
func CreateAppClient ¶
func CreateExternalClient ¶
func CreateGenericClient ¶
func CreateGenericClient(url string, service *Service, config *Config, clientType ClientType) *gentleman.Client
func CreateInfraClient ¶
func CreatePlatformClient ¶
func CreatePlatformClient(config *Config) *gentleman.Client
func GetCredential ¶
func UserAgentName ¶
Types ¶
type ClientType ¶
type ClientType int
type ErrorDescriptor ¶
type IOHeadersRecorder ¶
type IOHeadersRecorder struct {
// contains filtered or unexported fields
}
func NewIOHeadersRecorder ¶
func NewIOHeadersRecorder(parent *http.Request) *IOHeadersRecorder
func (*IOHeadersRecorder) AddResponseHeaders ¶
func (r *IOHeadersRecorder) AddResponseHeaders(out http.Header)
AddResponseHeaders writes accumulated headers to an outgoing response
func (*IOHeadersRecorder) BeforeDial ¶
func (r *IOHeadersRecorder) BeforeDial(req *http.Request)
func (*IOHeadersRecorder) ClearSmartCacheHeaders ¶
func (r *IOHeadersRecorder) ClearSmartCacheHeaders()
func (*IOHeadersRecorder) CopyFrom ¶
func (r *IOHeadersRecorder) CopyFrom(other *IOHeadersRecorder)
type NoUserAgentError ¶
type NoUserAgentError struct {
// contains filtered or unexported fields
}
func NewNoUserAgentError ¶
func NewNoUserAgentError(message string) *NoUserAgentError
func (*NoUserAgentError) Error ¶
func (e *NoUserAgentError) Error() string
type RequestRecorder ¶
type ResponseError ¶
func (ResponseError) Error ¶
func (err ResponseError) Error() string
Click to show internal directories.
Click to hide internal directories.