Documentation ¶
Index ¶
- type Addr
- type ChainStore
- func (ps ChainStore[T]) Add(inet256.Addr)
- func (ps ChainStore[T]) Contains(id inet256.Addr) bool
- func (ps ChainStore[T]) ListAddrs(id inet256.Addr) []T
- func (ps ChainStore[T]) ListPeers() []inet256.Addr
- func (ps ChainStore[T]) Remove(inet256.Addr)
- func (ps ChainStore[T]) SetAddrs(x inet256.Addr, addrs []T)
- type Set
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainStore ¶
type ChainStore[T p2p.Addr] []Store[T]
func (ChainStore[T]) Add ¶
func (ps ChainStore[T]) Add(inet256.Addr)
func (ChainStore[T]) ListAddrs ¶
func (ps ChainStore[T]) ListAddrs(id inet256.Addr) []T
func (ChainStore[T]) ListPeers ¶
func (ps ChainStore[T]) ListPeers() []inet256.Addr
func (ChainStore[T]) Remove ¶
func (ps ChainStore[T]) Remove(inet256.Addr)
func (ChainStore[T]) SetAddrs ¶
func (ps ChainStore[T]) SetAddrs(x inet256.Addr, addrs []T)
Click to show internal directories.
Click to hide internal directories.