Documentation ¶
Index ¶
Constants ¶
View Source
const ( MAX_MESSAGES = 10 // Maximum number of messages to book at a time SYNCHRONOUS = false )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { PubSubClient *pubsub.Client Ctx context.Context Synchronous bool MaxMessages int // contains filtered or unexported fields }
func NewAsyncClient ¶
func (*Client) SetContext ¶
type Message ¶
type Message interface { GetId() string GetData() ([]byte, error) GetAttributes() (map[string]string, error) }
func NewPubSubMessage ¶
type PubSubMessage ¶
func (PubSubMessage) GetAttributes ¶
func (message PubSubMessage) GetAttributes() (map[string]string, error)
func (PubSubMessage) GetData ¶
func (message PubSubMessage) GetData() ([]byte, error)
func (PubSubMessage) GetId ¶
func (message PubSubMessage) GetId() string
Click to show internal directories.
Click to hide internal directories.