wso2

package
v0.0.0-...-2ba887c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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 -

type Wso2API

type Wso2API struct {
	models.API
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL