Documentation ¶
Overview ¶
Package protocol implements some common communication protocols using file watcher.
Package protocol implements some common communication protocols using file watcher.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IRespondent ¶
type IRespondent interface { Initialize() GetCommProtocolInfo() utils.SocketType Send(message *message.Message) error Close() error Recv() ([]byte, error) SetOption(name string, value interface{}) (err error) Listen(address string) error Dial(path string) error }
func GetRespondentInstance ¶
func GetRespondentInstance(log log.T, identity identity.IAgentIdentity) IRespondent
GetRespondentInstance returns the respondent instance
type ISurvey ¶
type ISurvey interface { Initialize() GetCommProtocolInfo() utils.SocketType Send(message *message.Message) error Close() error Recv() ([]byte, error) SetOption(name string, value interface{}) (err error) Listen(address string) error Dial(path string) error }
func GetSurveyInstance ¶
func GetSurveyInstance(log log.T, identity identity.IAgentIdentity) ISurvey
GetSurveyInstance returns the surveyor instance
Click to show internal directories.
Click to hide internal directories.