institutions

package
v0.0.0-...-f6a722c Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Institution

type Institution struct {
	Name           string
	AccessToken    string
	ItemID         string
	ConsentExpires time.Time
}

type InstitutionManager

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

InstitutionManager is not safe for concurrent use

func NewInstitutionManager

func NewInstitutionManager(confDir, filename string) (*InstitutionManager, error)

NewInstitutionManager assumed confDir already exists. The returned InstitutionManager is not safe for concurrent use.

func (*InstitutionManager) AddInstitution

func (m *InstitutionManager) AddInstitution(ins Institution) error

func (*InstitutionManager) GetInstitution

func (m *InstitutionManager) GetInstitution(name string) (Institution, error)

func (*InstitutionManager) GetInstitutions

func (m *InstitutionManager) GetInstitutions(names []string) ([]Institution, error)

GetInstitutions returns all institutions if len(names) == 0

func (*InstitutionManager) List

func (m *InstitutionManager) List() []Institution

func (*InstitutionManager) UpdateConsentExpiry

func (m *InstitutionManager) UpdateConsentExpiry(name string, newExpiry time.Time) (Institution, error)

func (*InstitutionManager) WriteInstitutions

func (m *InstitutionManager) WriteInstitutions() error

Jump to

Keyboard shortcuts

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