Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RESTAPIPlugin ¶
type RESTAPIPlugin struct {
Deps RESTAPIPluginDeps
}
RESTAPIPlugin - registers VPP REST API Plugin
func (*RESTAPIPlugin) AfterInit ¶
func (plugin *RESTAPIPlugin) AfterInit() (err error)
AfterInit - used to register HTTP handlers
func (*RESTAPIPlugin) Close ¶
func (plugin *RESTAPIPlugin) Close() (err error)
Close - used to clean up resources used by RESTAPIPlugin
func (*RESTAPIPlugin) Init ¶
func (plugin *RESTAPIPlugin) Init() (err error)
Init - initializes the RESTAPIPlugin
type RESTAPIPluginDeps ¶
type RESTAPIPluginDeps struct { local.PluginInfraDeps HTTPHandlers rest.HTTPHandlers GoVppmux govppmux.API }
RESTAPIPluginDeps - dependencies of RESTAPIPlugin
Click to show internal directories.
Click to hide internal directories.