Documentation ¶
Overview ¶
Package msgsync propagates protobuf messages to a particular topic.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v1.5.0
type Config struct {
Topic string
}
Config groups configurations fields. It can be extended with other fields (such as sync/async, partition...).
type Deps ¶
type Deps struct { infra.PluginDeps Messaging messaging.Mux }
Deps groups dependencies injected into the plugin so that they are logically separated from other plugin fields.
type Option ¶ added in v1.5.0
type Option func(*Plugin)
Option is a function that can be used in NewPlugin to customize Plugin.
func UseConf ¶ added in v1.5.0
UseConf returns Option which injects a particular configuration.
func UseDeps ¶ added in v1.5.0
UseDeps returns Option that can inject custom dependencies.
type Plugin ¶ added in v1.5.0
Plugin implements KeyProtoValWriter that propagates protobuf messages to a particular topic (unless the messaging.Mux is not disabled).
func NewPlugin ¶ added in v1.5.0
NewPlugin creates a new Plugin with the provided Options.
func (*Plugin) AfterInit ¶ added in v1.5.0
AfterInit uses provided MUX connection to build new publisher.