12 ms·
I used the configuration struct pattern in this case. When you want to call ADDJOB you use an AddRequest struct, where zero values to the fields mean the parame
by dvirsky 11y ago
I used the configuration struct pattern in this case. When you want to call ADDJOB you use an AddRequest struct, where zero values to the fields mean the parameters are not used, and the Add method accepts this struct. https://github.com/EverythingMe/go-disque/blob/master/disque/disque.go#L32 https://github.com/EverythingMe/go-disque/blob/master/disque...
I want to add some builder style API for it, but didn't get to it yet.