getters

package
v0.0.0-...-67c89e5 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2021 License: Apache-2.0 Imports: 8 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 NewDefaultCreateWithdrawRequestHandler

func NewDefaultCreateWithdrawRequestHandler(c *client.Client) *defaultCreateWithdrawRequestHandler

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 CreateWithdrawRequestGetter

type CreateWithdrawRequestGetter interface {
	SetFilters(filters query.CreateWithdrawRequestFilters)
	SetIncludes(includes query.CreateWithdrawRequestIncludes)
	SetPageParams(pageParams page.Params)
	SetParams(params query.CreateWithdrawRequestParams)

	Filter() query.CreateWithdrawRequestFilters
	Include() query.CreateWithdrawRequestIncludes
	Page() page.Params

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

type CreateWithdrawRequestHandler

type CreateWithdrawRequestHandler interface {
	CreateWithdrawRequestGetter
	CreateWithdrawRequestPager
}

type Getter

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

Jump to

Keyboard shortcuts

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