plaid

package
v0.0.0-...-8cb3723 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PLAID_CLIENT_ID     = os.Getenv("PLAID_CLIENT_ID")
	PLAID_SECRET        = os.Getenv("PLAID_SECRET")
	PLAID_ENV           = os.Getenv("PLAID_ENV")
	PLAID_PRODUCTS      = os.Getenv("PLAID_PRODUCTS")
	PLAID_COUNTRY_CODES = os.Getenv("PLAID_COUNTRY_CODES")
	PLAID_REDIRECT_URI  = os.Getenv("PLAID_REDIRECT_URI")
)

Functions

This section is empty.

Types

type JWT

type JWT interface {
	GenerateToken(*model.User) (string, string, error)
}

JWT represents jwt interface

type Service

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

Service represents the auth application service

func NewPlaidService

func NewPlaidService(userRepo model.UserRepo, accountRepo model.AccountRepo, jwt JWT, db orm.DB, log *zap.Logger) *Service

NewAuthService creates new auth service

func (*Service) CreateLinkToken

func (s *Service) CreateLinkToken(c context.Context, accountID string, name string) (*model.PlaidAuthToken, error)

func (*Service) SetAccessToken

func (s *Service) SetAccessToken(c context.Context, id int, accountID string, e *request.SetAccessToken) (interface{}, error)

Jump to

Keyboard shortcuts

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