Documentation ¶
Index ¶
- Constants
- func IsInvalidAuthType(value string) bool
- func IsInvalidGrantType(value string) bool
- func IsInvalidQoS(value string) bool
- type AuthType
- type CreateResponse
- type DeleteResponse
- type Event
- type Events
- type GrantType
- type PublishResponse
- type Qos
- type Response
- type State
- type StateAction
- type Subscription
- type SubscriptionStatus
- type Subscriptions
- type TriggerHandshake
- type UpdateResponse
- type UpdateStateResponse
- type WebhookAuth
Constants ¶
View Source
const ( ContentModeBinary = "BINARY" ContentModeStructured = "STRUCTURED" )
Variables ¶
This section is empty.
Functions ¶
func IsInvalidAuthType ¶
func IsInvalidGrantType ¶
func IsInvalidQoS ¶
Types ¶
type AuthType ¶
type AuthType string
const (
AuthTypeClientCredentials AuthType = "oauth2"
)
func GetAuthType ¶
type CreateResponse ¶
type DeleteResponse ¶
type DeleteResponse struct {
Response
}
type GrantType ¶
type GrantType string
const GrantTypeClientCredentials GrantType = "client_credentials"
func GetGrantType ¶
type PublishResponse ¶
type State ¶
type State struct {
Action StateAction `json:"action,omitempty"`
}
type StateAction ¶
type StateAction string
const ( StateActionPause StateAction = "pause" StateActionResume StateAction = "resume" )
type Subscription ¶
type Subscription struct { Name string `json:"name,omitempty"` Events Events `json:"events,omitempty"` WebhookURL string `json:"webhookUrl,omitempty"` WebhookAuth *WebhookAuth `json:"webhookAuth,omitempty"` Qos Qos `json:"qos,omitempty"` ExemptHandshake bool `json:"exemptHandshake,omitempty"` ContentMode string `json:"contentMode,omitempty"` HandshakeStatus string `json:"handshakeStatus,omitempty"` SubscriptionStatus SubscriptionStatus `json:"subscriptionStatus,omitempty"` SubscriptionStatusReason string `json:"subscriptionStatusReason,omitempty"` LastSuccessfulDelivery string `json:"lastSuccessfulDelivery,omitempty"` LastFailedDelivery string `json:"lastFailedDelivery,omitempty"` LastFailedDeliveryReason string `json:"lastFailedDeliveryReason,omitempty"` }
type SubscriptionStatus ¶
type SubscriptionStatus string
const ( SubscriptionStatusActive SubscriptionStatus = "Active" SubscriptionStatusPaused SubscriptionStatus = "Paused" )
type Subscriptions ¶
type Subscriptions []Subscription
type TriggerHandshake ¶
type TriggerHandshake struct {
Response
}
type UpdateResponse ¶
type UpdateResponse struct {
Response
}
type UpdateStateResponse ¶
Click to show internal directories.
Click to hide internal directories.