package
1.9.0-alpha
Repository: https://github.com/lxlee1102/vpp-agent.git
Documentation: pkg.go.dev

# README

RPC plugin

The RPC plugin defines services required for resync, put or delete events via gRPC. Services are defined in model

Data persistence

RPC plugin support data persistence - all resynced, created or deleted data can be mirrored to desired database. Note: data are not read during resync.

To define persistence database, config file can be used and attached via flag:

-vpp-grpc-config=<path>

The config file contains one filed which defines persistence database:

persistence-db: bolt

Only one database can be defined at a time. Database plugin has to be loaded via appropriate config file as well.

# Functions

NewPlugin creates a new Plugin with the provides Options.
UseDeps returns Option that can inject custom dependencies.

# Variables

DefaultPlugin is default instance of Plugin.

# Structs

ChangeVppSvc forwards GRPC request to the localclient.
Config groups configurations fields.
Deps - dependencies of Plugin.
GetVppSvc uses VPP/Linux plugin handlers to read VPP configuration.
NotificationSvc forwards GRPC messages to external servers.
Plugin registers VPP GRPC services in *grpc.Server.
ResyncVppSvc forwards GRPC request to the localclient.

# Type aliases

Option is a function that acts on a Plugin to inject Dependencies or configuration.