Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearMconfigBuilders ¶
ClearMconfigBuilders clears existing mconfig builders.
func CreateMconfig ¶
func CreateMconfig(networkId string, gatewayId string) (*protos.GatewayConfigs, error)
CreateMconfig creates an mconfig by delegating to all builders that have been registered with the factory and append those results together. Note that the keys which builders return must be globally unique.
func RegisterMconfigBuilder ¶
func RegisterMconfigBuilder(builder MconfigBuilder)
func RegisterMconfigBuilders ¶
func RegisterMconfigBuilders(builders ...MconfigBuilder)
Types ¶
type MconfigBuilder ¶
type MconfigBuilder interface { // Build a partial mconfig for a gateway given a network and gateway ID. // For the mconfig streamer, the keys of the map returned by this builder // must be unique across the entire system or else the streamer policy will // error out, as we cannot coordinate "merging" configs across different // modules. Build(networkId string, gatewayId string) (map[string]proto.Message, error) }
Click to show internal directories.
Click to hide internal directories.