Documentation ¶ Index ¶ type TestNetmapSource func (s *TestNetmapSource) Epoch(context.Context) (uint64, error) func (s *TestNetmapSource) GetNetMap(ctx context.Context, diff uint64) (*netmap.NetMap, error) func (s *TestNetmapSource) GetNetMapByEpoch(_ context.Context, epoch uint64) (*netmap.NetMap, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type TestNetmapSource ¶ type TestNetmapSource struct { Netmaps map[uint64]*netmap.NetMap CurrentEpoch uint64 } func (*TestNetmapSource) Epoch ¶ func (s *TestNetmapSource) Epoch(context.Context) (uint64, error) func (*TestNetmapSource) GetNetMap ¶ func (s *TestNetmapSource) GetNetMap(ctx context.Context, diff uint64) (*netmap.NetMap, error) func (*TestNetmapSource) GetNetMapByEpoch ¶ func (s *TestNetmapSource) GetNetMapByEpoch(_ context.Context, epoch uint64) (*netmap.NetMap, error) Source Files ¶ View all Source files netmap_source.go Click to show internal directories. Click to hide internal directories.