KubeMQ
Client SDKsGoReference

Types & Errors

Shared message helpers, responses, and errors — KubeMQ Go SDK reference.

The Go SDK models messages as structs with fluent setters, exposes typed poll/command/query responses, and surfaces transport failures as *KubeMQError with stable error codes.

Common message types

TypeRole
Event / EventStorePub/sub payloads
QueueMessageDurable queue payload + Policy
Command / QueryRPC requests
CommandReply / QueryReplyRPC responses

Factory helpers (NewQueueMessage, NewCommand, etc.) pre-fill client ID where applicable.

Response types

TypeReturned from
QueueSendResultSendQueueMessage, upstream batch results
PollResponsePollQueue, downstream Poll
CommandResponse / QueryResponseSendCommand, SendQuery
EventStoreResultSendEventStore

Error model

KubeMQError implements error and exposes the Code and IsRetryable fields plus transport metadata.

CodeRetryableTypical cause
ErrCodeTimeoutYesDeadline exceeded
ErrCodeTransientYesNetwork drop or server busy / backpressure
ErrCodeAuthenticationNoInvalid token
ErrCodeValidationNoInvalid channel or message

Note: Subscription callbacks should not block; offload heavy work to worker goroutines to avoid stalling the gRPC stream.

Resources

See Also

Was this page helpful?

On this page