github.com/Jeffail/benthos/v3@v3.65.0/lib/output/writer/zmq4_config.go (about)

     1  package writer
     2  
     3  //------------------------------------------------------------------------------
     4  
     5  // ZMQ4Config contains configuration fields for the ZMQ4 output 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  	HighWaterMark int      `json:"high_water_mark" yaml:"high_water_mark"`
    11  	PollTimeout   string   `json:"poll_timeout" yaml:"poll_timeout"`
    12  }
    13  
    14  // NewZMQ4Config creates a new ZMQ4Config with default values.
    15  func NewZMQ4Config() *ZMQ4Config {
    16  	return &ZMQ4Config{
    17  		URLs:          []string{"tcp://*:5556"},
    18  		Bind:          true,
    19  		SocketType:    "PUSH",
    20  		HighWaterMark: 0,
    21  		PollTimeout:   "5s",
    22  	}
    23  }
    24  
    25  //------------------------------------------------------------------------------