protocol

package
v0.0.0-...-194cf1f Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2024 License: Apache-2.0 Imports: 11 Imported by: 1

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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