plaid

package
v0.0.0-...-07da10c Latest Latest
Warning

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

Go to latest
Published: May 19, 2020 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 Plaid

type Plaid struct {
	*plaid.Client
}

func NewPlaid

func NewPlaid(config PlaidConfig) (p *Plaid, err error)
func (p *Plaid) PlaidLink(settings Settings, tokChan chan<- plaid.ExchangePublicTokenResponse, errChan chan<- error)

TODO: load assets into binary https://tech.townsourced.com/post/embedding-static-files-in-go/ (probably with vfsgen, but maybe filb0x)

type PlaidConfig

type PlaidConfig struct {
	ClientID     string             `yaml:"client_id"`
	PublicKey    string             `yaml:"public_key"`
	Environments []PlaidEnvironment `yaml:"environments"`
	Users        []User             `yaml:"users"`
}

type PlaidEnvironment

type PlaidEnvironment struct {
	Name   string `yaml:"name"`
	Secret string `yaml:"secret"`
}

type PlaidInstitution

type PlaidInstitution struct {
	Name        string `yaml:"name"`
	ItemId      string `yaml:"item_id"`
	AccessToken string `yaml:"access_token"`
}

type Settings

type Settings struct {
	PlaidProducts    string
	PlaidEnvironment string
	PlaidPublicKey   string
}

type User

type User struct {
	LedgerFileName string             `yaml:"ledger_file_name"`
	Institutions   []PlaidInstitution `yaml:"institutions"`
}

Jump to

Keyboard shortcuts

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