Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddHandlerVersion ¶
func AddHandlerVersion(version vpp.Version, msgs []govppapi.Message, h NewHandlerFunc)
AddHandlerVersion is used to register implementations of VPP handler API interface for a specific VPP version.
Types ¶
type NewHandlerFunc ¶
type NewHandlerFunc func(ch govppapi.Channel, log logging.Logger) SyslogVppAPI
type SyslogVppAPI ¶
type SyslogVppAPI interface { SetSender(sender SenderConfig) error GetSender() (*SenderConfig, error) DisableSender() error }
SyslogVppAPI defines VPP handler API in vpp-version agnostic way. It cannot not use any generated binary API code directly.
func CompatibleVppHandler ¶
func CompatibleVppHandler(c vpp.Client, log logging.Logger) SyslogVppAPI
CompatibleVppHandler checks all the registered implementations to find the compatible handler implementation.
Click to show internal directories.
Click to hide internal directories.