Documentation ¶
Index ¶
Constants ¶
View Source
const ID protocol.ID = "/dnn/1.0.0"
View Source
const TYPE_NODELIST = "nodelist"
Variables ¶
This section is empty.
Functions ¶
func Connect ¶
func Connect( node *host.Host, address string, logInfoHandler LogInfoFunc, logErrorHandler LogErrorFunc, addPeerToListHandler AddPeerToListFunc, removePeerFromListHandler RemovePeerFromListFunc, ) error
Types ¶
type AddPeerToListFunc ¶
type DnnService ¶
type DnnService struct { Host *host.Host LogInfoHandler LogInfoFunc LogErrorHandler LogErrorFunc AddPeerToListHandler AddPeerToListFunc RemovePeerFromListHandler RemovePeerFromListFunc }
func NewDnnService ¶
func NewDnnService( h *host.Host, logInfoHandler LogInfoFunc, logErrorHandler LogErrorFunc, addPeerToListHandler AddPeerToListFunc, removePeerFromListHandler RemovePeerFromListFunc, ) (*DnnService, error)
func (*DnnService) StreamHandler ¶
func (s *DnnService) StreamHandler(buff network.Stream)
type LogErrorFunc ¶
type LogErrorFunc func(error)
type LogInfoFunc ¶
type LogInfoFunc func(string, ...interface{})
type RemovePeerFromListFunc ¶
Click to show internal directories.
Click to hide internal directories.