Versions in this module Expand all Collapse all v1 v1.4.1 Mar 1, 2023 Changes in this version + const ASC + const BootNode + const CN + const DESC + const EQ + const FullNode + const GT + const Ge + const HP + const HS + const IN + const IT + const LE + const NC + const NE + const RelayPrefixHttp + var ErrInvalidAddress = errors.New("invalid address") + var ErrInvalidNodeMode = errors.New("invalid node mode") + type Address struct + Overlay boson.Address + Signature []byte + Underlay ma.Multiaddr + func NewAddress(signer crypto.Signer, underlay ma.Multiaddr, overlay boson.Address, ...) (*Address, error) + func ParseAddress(underlay, overlay, signature []byte, networkID uint64) (*Address, error) + func (a *Address) Equal(b *Address) bool + func (a *Address) MarshalJSON() ([]byte, error) + func (a *Address) ShortString() string + func (a *Address) String() string + func (a *Address) UnmarshalJSON(b []byte) error + type AddressInfo struct + Address *Address + NodeMode Model + func (i *AddressInfo) LightString() string + type ApiBody struct + Filter []ApiFilter + Page ApiPage + Sort ApiSort + type ApiFilter struct + Key string + Term string + Value string + type ApiPage struct + PageNum int + PageSize int + type ApiSort struct + Key string + Order string + type BitVectorApi struct + B []byte + Len int + type ChunkInfoOverlay struct + Bit BitVectorApi + Overlay string + type ChunkInfoSourceApi struct + ChunkSource []ChunkSourceApi + PyramidSource string + type ChunkSourceApi struct + ChunkBit BitVectorApi + Overlay string + type FileInfo struct + Bitvector BitVectorApi + FileSize int + PinState bool + TreeSize int + type Model struct + Bv *bitvector.BitVector + func NewModel() Model + func NewModelFromBytes(m []byte) (Model, error) + func (m Model) IsBootNode() bool + func (m Model) IsFull() bool + func (m Model) SetMode(md int) Model + func (m Model) String() string + type Paging struct + func NewPaging(logger logging.Logger, page, limit int, sort string, order string) *Paging + func (pg *Paging) Page(list []map[string]interface{}) []map[string]interface{} + func (pg *Paging) PageSort(list []map[string]interface{}, sortName, sortType string) (newList []map[string]interface{}) + func (pg *Paging) ResponseFilter(list []map[string]interface{}, filterTerm []ApiFilter) (newList []map[string]interface{})