github.com/teng231/kafclient@v1.2.9/CHANGELOG.MD (about)

     1  # v1.2.4 BIG Update
     2  - hotfix issue kafka of sarama
     3  # v1.2.3 BIG Update
     4  - Change struct name `PubSub` to `Client`
     5  - Change interface IPubSub to IClient
     6  # v1.1.6
     7  - Add Async publish, send message async
     8  - Update sarama. because v1.31.1 publisher deadlock
     9  # v1.1.5
    10  - Add manual for create topic or not
    11  - config at `config/server.properties` with config `auto.create.topics.enable`
    12  # v1.1.4
    13  - Upgrade code, fix issue create topic
    14  - update golang version
    15  # v1.1.3
    16  - Update struct name, syntax, remove log
    17  # v1.1.2
    18  - Update README
    19  # v1.1.1
    20  - Add interface struct `IPubsub` define all methods.
    21  - Depredicate `InitConsumer` and `OnScanMessages` will be remove some version.
    22  - Add `PublishWithConfig` to push message with multiple config. Now can add header, metadata.
    23  PublishWithConfig: help we can send message to a partition to process sync task.
    24  - struct `Topic` add atrribute Partition to manual setup send message to a partition.
    25  ```go
    26  type Topic struct {
    27  	Name       string
    28  	AutoCommit bool
    29  	Partition  *int32
    30  }
    31  ```
    32  - struct `Message` add attribute Header
    33  ``` go
    34  type Message struct {
    35  	Offset        int64  `json:"offset,omitempty"`
    36  	Partition     int    `json:"partition,omitempty"`
    37  	Topic         string `json:"topic,omitempty"`
    38  	Body          []byte `json:"body,omitempty"`
    39  	Timestamp     int64  `json:"timestamp,omitempty"`
    40  	ConsumerGroup string `json:"consumer_group,omitempty"`
    41  	Commit        func()
    42  	// new property
    43  	Headers map[string]string
    44  }
    45  ```
    46  - Add struct `SenderConfig` help add more information about sender.
    47  ```go
    48  // SenderConfig addion config when publish message
    49  type SenderConfig struct {
    50  	Metadata interface{}
    51  	Headers  map[string]string
    52  }
    53  ```