Versions in this module Expand all Collapse all v2 v2.0.0 Jun 18, 2023 Changes in this version + const PluginGeneric + const ScriptKeyDataIn + const ScriptKeyDataOut + func NewPluginGeneric(ctx context.Context, config *gwTY.Config) (providerTY.Plugin, error) + type Config struct + Protocol cmap.CustomMap + RetryCount int + Script ScriptFormatter + Type string + type GenericProtocol interface + Close func() error + Post func(rawMsg *msgTY.Message) error + type Provider struct + Config *Config + GatewayConfig *gwTY.Config + Protocol GenericProtocol + ProtocolType string + func (p *Provider) Close() error + func (p *Provider) ConvertToMessages(rawMsg *msgTY.RawMessage) ([]*msgTY.Message, error) + func (p *Provider) Name() string + func (p *Provider) Post(msg *msgTY.Message) error + func (p *Provider) Start(receivedMessageHandler func(rawMsg *msgTY.RawMessage) error) error + type ScriptFormatter struct + OnReceive string + OnSend string