Documentation ¶
Overview ¶
Package agent provides an experimental and incomplete implementation of github.com/abu-lang/goabu.Agent based on github.com/libp2p/go-libp2p-pubsub.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
Agent is an implementation of github.com/abu-lang/goabu.Agent based on github.com/libp2p/go-libp2p-pubsub.
func (*Agent) ReceivedActions ¶
ReceivedActions returns two channels passing a channel each for every received update. The []byte channel passes the marshalled update while the string channel is used for interacting with the github.com/abu-lang/goabu.Executer.
func (*Agent) SetLogLevel ¶
SetLogLevel sets the log level of the Agent's logger.
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder can be used for Agent creation.
func (*Builder) WithLoggerOptions ¶
WithLoggerOptions configures the Agent's logger.
func (*Builder) WithMdns ¶
WithMdns set ups mDNS discovery with the passed non empty discovery tag string.