github.com/Jeffail/benthos/v3@v3.65.0/lib/input/reader/zmq4_config.go (about) 1 package reader 2 3 //------------------------------------------------------------------------------ 4 5 // ZMQ4Config contains configuration fields for the ZMQ4 input type. 6 type ZMQ4Config struct { 7 URLs []string `json:"urls" yaml:"urls"` 8 Bind bool `json:"bind" yaml:"bind"` 9 SocketType string `json:"socket_type" yaml:"socket_type"` 10 SubFilters []string `json:"sub_filters" yaml:"sub_filters"` 11 HighWaterMark int `json:"high_water_mark" yaml:"high_water_mark"` 12 PollTimeout string `json:"poll_timeout" yaml:"poll_timeout"` 13 } 14 15 // NewZMQ4Config creates a new ZMQ4Config with default values. 16 func NewZMQ4Config() *ZMQ4Config { 17 return &ZMQ4Config{ 18 URLs: []string{"tcp://localhost:5555"}, 19 Bind: false, 20 SocketType: "PULL", 21 SubFilters: []string{}, 22 HighWaterMark: 0, 23 PollTimeout: "5s", 24 } 25 } 26 27 //------------------------------------------------------------------------------