package
0.0.0-20230202104840-9a6bae30f134
Repository: https://github.com/ydb-platform/ydb-go-examples.git
Documentation: pkg.go.dev

# Functions

CommitNotify is example for receive commit notifications with async commit mode.
ExplicitPartitionStartStopHandler is example for create own handler for stop partition event from server.
OwnReadProgressStorage example about store reading progress in external system and don't use commit messages to YDB.
PartitionGracefulStopHandled is example of sdk handle server signal about graceful stop partition.
PartitionStartStopHandlerAndOwnReadProgressStorage example of complex use explicit start/stop partition handler and own progress storage in external system.
PartitionStopHandled is example of sdk handle server signal about stop partition.
PrintMessageContent is simple example for easy start read messages it is not recommend way for heavy-load processing, batch processing usually will faster.
ProcessMessagesWithSyncCommit example about guarantee wait for commit accepted by server.
ReadMessagesByBatch it is recommended way for process messages.
ReadMessagesWithCustomBatching example of custom of readed message batch.
UnmarshalMessageContentToJSONStruct is example for effective way for unmarshal json message content to value.
UnmarshalMessageContentToOwnType is example about effective unmarshal own format from message content.
UnmarshalMessageContentToProtobufStruct is example for effective way for unmarshal protobuf message content to value.

# Structs

MyMessage example type with own serialization.