protocol

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IMessage

type IMessage interface {
	ReadMsg(i interface{})
	WriteMsg(i interface{})
}

type IPwnProtocol

type IPwnProtocol interface {
	SetConfig(i interface{})
	GetConfig() interface{}
	Start()
	Stop()

	LogNoti(i interface{})
	DataNoti(i interface{})

	IMessage
}

各种p2p自组网协议实现接口

type PwnMDns

type PwnMDns struct {
	Config  map[string]string
	Notifee chan peer.AddrInfo
	// contains filtered or unexported fields
}

func New

func New() *PwnMDns

func (*PwnMDns) DataNoti

func (n *PwnMDns) DataNoti(i interface{})

func (*PwnMDns) GetConfig

func (n *PwnMDns) GetConfig() interface{}

func (*PwnMDns) LogNoti

func (n *PwnMDns) LogNoti(i interface{})

func (*PwnMDns) SetConfig

func (n *PwnMDns) SetConfig(i interface{})

func (*PwnMDns) Start

func (n *PwnMDns) Start()

func (*PwnMDns) Stop

func (n *PwnMDns) Stop()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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