Documentation ¶
Index ¶
- Constants
- func FormatApplicationID(applicationID string) string
- func FormatProxyID(proxyID string) string
- func GetAccessRequest(cacheManager cache.Manager, managedApp *v1.ResourceInstance, ...) *management.AccessRequest
- func GetConsumerApplication(ri *v1.ResourceInstance) (string, string)
- func GetConsumerOrgID(ri *v1.ResourceInstance) string
- func GetSubscriptionID(subscription *v1.ResourceInstance) string
- func GetTransactionEventStatus(status int) string
- func GetTransactionSummaryStatus(status int) string
- func IsExceptionStatus(status int) bool
- func IsFailureStatus(status int) bool
- func IsHTTPExceptionStatus(status int) bool
- func IsHTTPFailureStatus(status int) bool
- func IsHTTPSuccessStatus(status int) bool
- func IsSuccessStatus(status int) bool
- func MarshalHeadersAsJSONString(headers map[string]string) string
- func UpdateWithConsumerDetails(accessRequest *management.AccessRequest, managedApp *v1.ResourceInstance, ...) *models.ConsumerDetails
Constants ¶
const ( // SummaryEventProxyIDPrefix - Prefix for proxyID in summary event SummaryEventProxyIDPrefix = "remoteApiId_" // SummaryEventApplicationIDPrefix - Prefix for application.ID in summary event SummaryEventApplicationIDPrefix = "remoteAppId_" )
Variables ¶
This section is empty.
Functions ¶
func FormatApplicationID ¶
FormatApplicationID - Returns the prefixed applicationID for summary event.
func FormatProxyID ¶
FormatProxyID - Returns the prefixed proxyID for summary event.
func GetAccessRequest ¶
func GetAccessRequest(cacheManager cache.Manager, managedApp *v1.ResourceInstance, apiID, stage, version string) *management.AccessRequest
GetAccessRequest -
func GetConsumerApplication ¶
func GetConsumerApplication(ri *v1.ResourceInstance) (string, string)
GetConsumerApplication -
func GetSubscriptionID ¶
func GetSubscriptionID(subscription *v1.ResourceInstance) string
GetSubscriptionID -
func GetTransactionEventStatus ¶
GetTransactionEventStatus - Returns the transaction event status based on HTTP status code.
func GetTransactionSummaryStatus ¶
GetTransactionSummaryStatus - Returns the summary status based on HTTP status code.
func IsExceptionStatus ¶
IsExceptionStatus - Returns true if the HTTP status is between 500 and 511
func IsFailureStatus ¶
IsFailureStatus - Returns true if the HTTP status is between 400 and 500
func IsHTTPExceptionStatus ¶
IsHTTPExceptionStatus - Returns true if the HTTP status is between 500 and 511
func IsHTTPFailureStatus ¶
IsHTTPFailureStatus - Returns true if the HTTP status is between 400 and 500
func IsHTTPSuccessStatus ¶
IsHTTPSuccessStatus - Returns true if the HTTP status is between 200 and 400
func IsSuccessStatus ¶
IsSuccessStatus - Returns true if the HTTP status is between 200 and 400
func MarshalHeadersAsJSONString ¶
MarshalHeadersAsJSONString - Serializes the header key/values in map as JSON string
func UpdateWithConsumerDetails ¶
func UpdateWithConsumerDetails(accessRequest *management.AccessRequest, managedApp *v1.ResourceInstance, log log.FieldLogger) *models.ConsumerDetails
UpdateWithConsumerDetails -
Types ¶
This section is empty.