Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockNetwork ¶
MockNetwork ..
func (*MockNetwork) GetConnexion ¶
func (net *MockNetwork) GetConnexion(address string) chan []byte
GetConnexion returns a connexion channel if it does not exist, it creates one
type MockWhiteListProvider ¶
type MockWhiteListProvider struct {
// contains filtered or unexported fields
}
MockWhiteListProvider is a backend that retrieves a list of authorized peers
func NewMockWhiteListProvider ¶
func NewMockWhiteListProvider() *MockWhiteListProvider
NewMockWhiteListProvider ....
func (*MockWhiteListProvider) GetPeers ¶
func (m *MockWhiteListProvider) GetPeers() ([][]byte, error)
GetPeers ......
func (*MockWhiteListProvider) GetPeersChan ¶
func (m *MockWhiteListProvider) GetPeersChan() (chan [][]byte, error)
GetPeersChan ....
type PubSub ¶
type PubSub interface { GetTopic(ctx context.Context, topic string) Topic Publish(topic string, msg []byte) error }
PubSub is a generic network interface used y
Click to show internal directories.
Click to hide internal directories.