exchange

package
v1.3.57 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTotalExchangeCount added in v1.3.45

func GetTotalExchangeCount() (*int, error)

func InsertExchange added in v1.0.42

func InsertExchange(exchange Exchange) (int, error)

func InsertExchangeChain added in v1.0.42

func InsertExchangeChain(exchangeChain ExchangeChain) (int, error)

func InsertExchangeChains added in v1.0.42

func InsertExchangeChains(exchangeChains []ExchangeChain) error

func InsertExchanges added in v1.0.42

func InsertExchanges(exchanges []Exchange) error

func RemoveExchange added in v1.0.42

func RemoveExchange(exchangeID int) error

func UpdateExchange added in v1.0.42

func UpdateExchange(exchange Exchange) error

func UpdateExchangeChainByUUID added in v1.0.42

func UpdateExchangeChainByUUID(exchangeChain ExchangeChain) error

Types

type Exchange

type Exchange struct {
	ID             *int       `json:"id"`
	UUID           string     `json:"uuid"`
	Name           string     `json:"name"`
	AlternateName  string     `json:"alternateName"`
	ExchangeTypeID *int       `json:"exchangeTypeId"`
	Url            string     `json:"url"`
	StartDate      *time.Time `json:"startDate"`
	EndDate        *time.Time `json:"endDate"`
	Description    string     `json:"description"`
	CreatedBy      string     `json:"createdBy"`
	CreatedAt      time.Time  `json:"createdAt"`
	UpdatedBy      string     `json:"updatedBy"`
	UpdatedAt      time.Time  `json:"updatedAt"`
}

func GetExchange added in v1.0.42

func GetExchange(exchangeID int) (*Exchange, error)

func GetExchangeList added in v1.0.44

func GetExchangeList(ids []int) ([]Exchange, error)

func GetExchangeListByPagination added in v1.3.45

func GetExchangeListByPagination(_start, _end *int, _order, _sort string, _filters []string) ([]Exchange, error)

for refinedev

func GetExchanges added in v1.0.42

func GetExchanges() ([]Exchange, error)

func GetExchangesByUUIDs added in v1.0.42

func GetExchangesByUUIDs(UUIDList []string) ([]Exchange, error)

func GetStartAndEndDateDiffExchanges added in v1.0.42

func GetStartAndEndDateDiffExchanges(diffInDate int) ([]Exchange, error)

type ExchangeChain

type ExchangeChain struct {
	UUID        string    `json:"uuid"`
	ExchangeID  *int      `json:"exchangeId"`
	ChainID     *int      `json:"chainId"`
	Description string    `json:"description"`
	CreatedBy   string    `json:"createdBy"`
	CreatedAt   time.Time `json:"createdAt"`
	UpdatedBy   string    `json:"updatedBy"`
	UpdatedAt   time.Time `json:"updatedAt"`
}

Jump to

Keyboard shortcuts

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