inter

package
v0.0.0-...-3f3ae68 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidHexString

func IsValidHexString(str string) (valid bool, length int)

IsValidHexString

Types

type AnyMap

type AnyMap[T any] struct {
	Values map[string]T
}

func (*AnyMap[T]) HasKey

func (a *AnyMap[T]) HasKey(key string) bool

func (*AnyMap[T]) JsonString

func (a *AnyMap[T]) JsonString() (*base.OptionalString, error)

func (*AnyMap[T]) Keys

func (a *AnyMap[T]) Keys() *base.StringArray

func (AnyMap[T]) MarshalJSON

func (a AnyMap[T]) MarshalJSON() ([]byte, error)

`AnyMap` only support Marshal

func (*AnyMap[T]) Remove

func (a *AnyMap[T]) Remove(key string) T

func (*AnyMap[T]) SetValue

func (a *AnyMap[T]) SetValue(value T, key string)

func (*AnyMap[T]) String

func (a *AnyMap[T]) String() string

func (*AnyMap[T]) UnmarshalJSON

func (a *AnyMap[T]) UnmarshalJSON(data []byte) error

func (*AnyMap[T]) ValueOf

func (a *AnyMap[T]) ValueOf(key string) T

type SdkPageable

type SdkPageable[T any] struct {
	TotalCount_    int    `json:"totalCount"`
	CurrentCount_  int    `json:"currentCount"`
	CurrentCursor_ string `json:"currentCursor"`
	HasNextPage_   bool   `json:"hasNextPage"`

	Items []T `json:"items"`
	// contains filtered or unexported fields
}

`SdkPageable` implemented wallet-SDK/base's interface `Jsonable` If you new class `Xxx` extends it, you should implement `NewXxxWithJsonString` by your self.

func (*SdkPageable[T]) CurrentCount

func (p *SdkPageable[T]) CurrentCount() int

func (*SdkPageable[T]) CurrentCursor

func (p *SdkPageable[T]) CurrentCursor() string

func (*SdkPageable[T]) HasNextPage

func (p *SdkPageable[T]) HasNextPage() bool

func (*SdkPageable[T]) ItemArray

func (p *SdkPageable[T]) ItemArray() *base.AnyArray

func (*SdkPageable[T]) ItemAt

func (p *SdkPageable[T]) ItemAt(index int) T

It's will crash when index out of range

func (*SdkPageable[T]) JsonString

func (p *SdkPageable[T]) JsonString() (*base.OptionalString, error)

func (*SdkPageable[T]) TotalCount

func (p *SdkPageable[T]) TotalCount() int

Jump to

Keyboard shortcuts

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