{"repo":"FluidGroup/Bulk","free":true,"listed":false,"github":"https://github.com/FluidGroup/Bulk","clone":"git clone https://github.com/FluidGroup/Bulk.git","description":"👨‍💻 Bulk is a library for buffering the objects. Pipeline(Sink) receives the object and emits the object bulked.","language":"Swift","stars":61,"topics":["logging","swift","logger"],"license":"MIT","category":"analytics","readme_excerpt":"Bulk / BulkLogger Bulk is a library for buffering the objects. Pipeline(Sink) receives the object and emits the object bulked. What is for? To pack a lot of elements would be helpful in several cases. For example, sending the analytics events for your products with in house API. - collect the many events - pack it into one - send these events as a set of events. Bulk module Make a sink We call the pipeline that receives the object as Sink . Sink receives the objects and emits the bulked object to multiple targets. 1. Select the buffer. To create a bulk, we can choose several types of the buffer. Currently, Bulk provides 2 types below. - MemoryBuffer - FileBuffer In this tutorial, we select MemoryBuffer. 2. Create the target Target receives the bulked object from Sink. Bulk does not privides default implemented Target. For now, you need to create it. And finally, create BulkSink object. Send the objects sink sends the bulked object when Buffer receives the objects up to the specified size (10 elements in the example). BulkLogger module The Logger as a library on top of Bulk. BulkLogger provies Logger object that wraps Sink inside. Logger object send the log data to 2 targets (LogConsoleTarget and OSLogTarget) LICENSE Bulk Framework is released under the MIT License.","default_branch":null,"files":null,"tree":[],"storefront":"/r/FluidGroup","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/FluidGroup/Bulk/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}