Documentation ¶
Index ¶
- type AuthResponse
- type GatewayClient
- func (c *GatewayClient) Authenticate() error
- func (c *GatewayClient) DiscoverAPIs() error
- func (c *GatewayClient) ProcessSubscribe(subscription apic.Subscription)
- func (c *GatewayClient) ProcessUnsubscribe(subscription apic.Subscription)
- func (c *GatewayClient) Start()
- func (c *GatewayClient) ValidateSubscription(subscription apic.Subscription) bool
- type Wso2API
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthResponse ¶
type AuthResponse struct { AccessToken string `json:"access_token"` RefreshToken string `json:"refresh_token"` Scope string `json:"scope"` TokenType string `json:"token_type"` ExpiresIn int `json:"expires_in"` }
AuthResponse - Authentication response data
type GatewayClient ¶
type GatewayClient struct {
// contains filtered or unexported fields
}
GatewayClient - client connection to WSO2
func NewGatewayClient ¶
func NewGatewayClient(cfg *config.AgentConfig) (*GatewayClient, error)
NewGatewayClient - builds a new Client using the AgentConfig
func (*GatewayClient) Authenticate ¶
func (c *GatewayClient) Authenticate() error
Authenticate - Authenticate with gateway
func (*GatewayClient) DiscoverAPIs ¶
func (c *GatewayClient) DiscoverAPIs() error
DiscoverAPIs - Discover and publish APIs to AMPLIFY Central
func (*GatewayClient) ProcessSubscribe ¶
func (c *GatewayClient) ProcessSubscribe(subscription apic.Subscription)
func (*GatewayClient) ProcessUnsubscribe ¶
func (c *GatewayClient) ProcessUnsubscribe(subscription apic.Subscription)
func (*GatewayClient) Start ¶
func (c *GatewayClient) Start()
func (*GatewayClient) ValidateSubscription ¶
func (c *GatewayClient) ValidateSubscription(subscription apic.Subscription) bool
ValidateSubscription -
Click to show internal directories.
Click to hide internal directories.