ideal

package
v0.0.0-...-ff628f3 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(configuration *configuration.Configuration, apiClient client.HttpClient) *Client

func (*Client) GetInfo

func (c *Client) GetInfo() (*IdealInfo, error)

func (*Client) GetInfoWithContext

func (c *Client) GetInfoWithContext(ctx context.Context) (*IdealInfo, error)

func (*Client) GetIssuers

func (c *Client) GetIssuers() (*IssuerResponse, error)

func (*Client) GetIssuersWithContext

func (c *Client) GetIssuersWithContext(ctx context.Context) (*IssuerResponse, error)
type CuriesLink struct {
	Name      string `json:"name,omitempty"`
	Href      string `json:"href,omitempty"`
	Templated bool   `json:"templated,omitempty"`
}

type IdealCountry

type IdealCountry struct {
	Name    string   `json:"name,omitempty"`
	Issuers []Issuer `json:"issuers,omitempty"`
}

type IdealInfo

type IdealInfo struct {
	HttpMetadata   common.HttpMetadata `json:"http_metadata,omitempty"`
	IdealInfoLinks InfoLinks           `json:"_links,omitempty"`
}
type InfoLinks struct {
	Self    common.Link  `json:"self,omitempty"`
	Curies  []CuriesLink `json:"curies,omitempty"`
	Issuers common.Link  `json:"ideal:issuers,omitempty"`
}

type Issuer

type Issuer struct {
	Bic  string `json:"bic,omitempty"`
	Name string `json:"name,omitempty"`
}

type IssuerResponse

type IssuerResponse struct {
	HttpMetadata common.HttpMetadata    `json:"http_metadata,omitempty"`
	Countries    []IdealCountry         `json:"countries,omitempty"`
	Links        map[string]common.Link `json:"_links,omitempty"`
}

Jump to

Keyboard shortcuts

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