rest

package
v1.29.0-beta.9 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAccount added in v1.29.0

func NewAccount(f *factory.Factory) *account

func NewAsset added in v1.27.0

func NewAsset(f *factory.Factory) *asset

func NewLedger added in v1.26.0

func NewLedger(f *factory.Factory) *ledger

func NewOrganization added in v1.25.0

func NewOrganization(f *factory.Factory) *organization

func NewPortfolio added in v1.27.0

func NewPortfolio(f *factory.Factory) *portfolio

func NewProduct added in v1.28.0

func NewProduct(f *factory.Factory) *product

Types

type APIError added in v1.27.0

type APIError struct {
	Title   string            `json:"title"`
	Code    string            `json:"code"`
	Message string            `json:"message"`
	Fields  map[string]string `json:"fields,omitempty"`
}

APIError struct to represent the error received

type Auth

type Auth struct {
	Factory *factory.Factory
}

func NewAuth

func NewAuth(f *factory.Factory) *Auth

func (*Auth) AuthenticateWithCredentials

func (r *Auth) AuthenticateWithCredentials(
	username, password string) (*model.TokenResponse, error)

func (*Auth) ExchangeToken

func (r *Auth) ExchangeToken(code string) (*model.TokenResponse, error)

Jump to

Keyboard shortcuts

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