plaid_cli

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	DataDir     string
	Tokens      map[string]string
	Aliases     map[string]string
	BackAliases map[string]string
}

func LoadData

func LoadData(dataDir string) (*Data, error)

func (*Data) Save

func (d *Data) Save() error

func (*Data) SaveAliases

func (d *Data) SaveAliases() error

func (*Data) SaveTokens

func (d *Data) SaveTokens() error

type LinkTmplData added in v0.0.3

type LinkTmplData struct {
	LinkToken string
}

type Linker

type Linker struct {
	Results       chan string
	RelinkResults chan bool
	Errors        chan error
	Client        *plaid.Client
	Data          *Data
	// contains filtered or unexported fields
}

func NewLinker

func NewLinker(data *Data, client *plaid.Client, countries []string, lang string) *Linker
func (l *Linker) Link(port string) (*TokenPair, error)
func (l *Linker) Relink(itemID string, port string) error

type RelinkTmplData added in v0.0.3

type RelinkTmplData struct {
	LinkToken string
}

type TokenPair

type TokenPair struct {
	ItemID      string
	AccessToken string
}

Jump to

Keyboard shortcuts

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