getters

package
v0.0.0-...-31acdf0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(client *client.Client) *getter

func NewDefaultAssetHandler

func NewDefaultAssetHandler(c *client.Client) *defaultAssetHandler

func NewDefaultCreateIssuanceRequestHandler

func NewDefaultCreateIssuanceRequestHandler(c *client.Client) *defaultCreateIssuanceRequestHandler

func NewDefaultTransactionHandler

func NewDefaultTransactionHandler(c *client.Client) *defaultTransactionHandler

Types

type AssetGetter

type AssetGetter interface {
	SetFilters(filters query.AssetFilters)
	SetIncludes(includes query.AssetIncludes)
	SetPageParams(pageParams page.Params)
	SetParams(params query.AssetParams)

	Filter() query.AssetFilters
	Include() query.AssetIncludes
	Page() page.Params

	ByID(ID string) (*regources.AssetResponse, error)
	List() (*regources.AssetListResponse, error)
}

type AssetHandler

type AssetHandler interface {
	AssetGetter
	AssetPager
}

type AssetPager

type AssetPager interface {
	Next() (*regources.AssetListResponse, error)
	Prev() (*regources.AssetListResponse, error)
	Self() (*regources.AssetListResponse, error)
	First() (*regources.AssetListResponse, error)
}

type CreateIssuanceRequestGetter

type CreateIssuanceRequestGetter interface {
	SetFilters(filters query.CreateIssuanceRequestFilters)
	SetIncludes(includes query.CreateIssuanceRequestIncludes)
	SetPageParams(pageParams page.Params)
	SetParams(params query.CreateIssuanceRequestParams)

	Filter() query.CreateIssuanceRequestFilters
	Include() query.CreateIssuanceRequestIncludes
	Page() page.Params

	ByID(ID string) (*regources.ReviewableRequestResponse, error)
	List() (*regources.ReviewableRequestListResponse, error)
}

type CreateIssuanceRequestHandler

type CreateIssuanceRequestHandler interface {
	CreateIssuanceRequestGetter
	CreateIssuanceRequestPager
}

type Getter

type Getter interface {
	GetPage(endpoint string, params query.Params, result interface{}) error
	PageFromLink(link string, v interface{}) error
}

type TransactionGetter

type TransactionGetter interface {
	SetFilters(filters query.TransactionFilters)
	SetIncludes(includes query.TransactionIncludes)
	SetPageParams(pageParams page.Params)
	SetParams(params query.TransactionParams)

	Filter() query.TransactionFilters
	Include() query.TransactionIncludes
	Page() page.Params

	ByID(ID string) (*regources.TransactionResponse, error)
	List() (*regources.TransactionListResponse, error)
}

type TransactionHandler

type TransactionHandler interface {
	TransactionGetter
	TransactionPager
}

Jump to

Keyboard shortcuts

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