Documentation
¶
Index ¶
- Constants
- func BytesToHexWithPrefix(data []byte) string
- func ConcatBytes(byteSlices ...[]byte) []byte
- func FormatAccount(account db.Account) pb.Account
- func GeneratePageToken(nextID int64) string
- func GetSuiFaucetHost(network string) string
- func GetSuiFullNodeHost(network string) string
- func HexToBytes32(hexStr string) ([]byte, error)
- func ParseResourceName(name string, fields []string) ([]int64, error)
- func RequestSuiFromFaucet(network, recipientAddress string) error
- func Uuid2bytes(uuidStr string) ([]byte, error)
- type CtxKey
- type IPagination
- type PageToken
- type Pagination
- type ResourceInfo
Constants ¶
View Source
const ( SERVICE_DEFAULT_PAGE_SIZE = 50 SERVICE_MAX_PAGE_SIZE = 100 PAGE_TOKEN_DEFAULT_EXP_SECONDS = 24 * 3600 )
View Source
const ( RESOURCE_PATTERN_WITHDRAW = "accounts/%d/withdraws/%d" RESOURCE_PATTERN_ORDER = "accounts/%d/sell-orders/%d" RESOURCE_PATTERN_FULFILLED_ORDER = "services/%d/fulfilled-orders/%d" RESOURCE_PATTERN_SERVICE = "services/%d" )
View Source
const (
KEY_PARAMS key = 1
)
View Source
const (
QUOTA_STEP int64 = 1
)
Variables ¶
This section is empty.
Functions ¶
func BytesToHexWithPrefix ¶
func ConcatBytes ¶
func GeneratePageToken ¶
func GetSuiFaucetHost ¶
func GetSuiFullNodeHost ¶
func HexToBytes32 ¶
func RequestSuiFromFaucet ¶
func Uuid2bytes ¶
Types ¶
type IPagination ¶
type Pagination ¶
func ParsePagination ¶
func ParsePagination(req IPagination) (*Pagination, error)
Click to show internal directories.
Click to hide internal directories.