Glific v0.3.1 Glific.Communications View Source

Glific interface for all provider communication

Link to this section Summary

Functions

Get the current provider based on the config

Get the current provider worker based on the organization | Config | Defaultconfig

Unified function to publish data on the graphql subscription endpoint. This is still looking for a place to actually reside. This is a good next stop for now

Link to this section Functions

Specs

provider() :: atom()

Get the current provider based on the config

Specs

provider_worker() :: atom()

Get the current provider worker based on the organization | Config | Defaultconfig

Link to this function

publish_data(data, topic)

View Source

Specs

publish_data(
  {:ok,
   Glific.Messages.Message.t()
   | Glific.Tags.MessageTag.t()
   | Glific.Tags.TemplateTag.t()
   | Glific.Tags.ContactTag.t()},
  atom()
) ::
  Glific.Messages.Message.t()
  | Glific.Tags.MessageTag.t()
  | Glific.Tags.TemplateTag.t()
  | Glific.Tags.ContactTag.t()
publish_data(
  Glific.Messages.Message.t()
  | Glific.Tags.MessageTag.t()
  | Glific.Tags.TemplateTag.t()
  | Glific.Tags.ContactTag.t(),
  atom()
) ::
  Glific.Messages.Message.t()
  | Glific.Tags.MessageTag.t()
  | Glific.Tags.TemplateTag.t()
  | Glific.Tags.ContactTag.t()

Unified function to publish data on the graphql subscription endpoint. This is still looking for a place to actually reside. This is a good next stop for now

For now the data types are Message and MessageTag