package
0.0.0-20241120123119-df9aa589b66d
Repository: https://github.com/amo-addai/devsecops-ci-cd.git
Documentation: pkg.go.dev

# Functions

AddConversation - Add conversation from guest.
AddConversationMessage - add conversation message, sending to guest.
AddConversationMessageFromGuest - add conversation message, from guest.
AuthenticatePrivateChannel - Authenticate websocket connection request.
FindCompanyByPhone - Find company by it's unique phone.
FindConversation - find conversation.
FromJSONToConversationMessageJSON - convert string to ConversationMessageJSON.
GetAllCompanies - Get all the companies in the system.
GetCompanies - Gets the companies for the given company phones.
GetConversationByID - Get conversation by id.
GetConversationForPhones - Get conversations for given company phones (phone_dest).
GetConversationMessagesByConversationGUID - Gets all the conversation messages by the conversation guid.
GetConversations - Gets all the conversations if limit is 0, means no limit.
GetConversationsSince - Gets all the conversations since time, specifically for last message creation time.
GetNotifiesForConversation - Get conversations for a given phone.
GetUsersInGroup - Get users from group.
GetUsersOnConversation - Get the allowed users that can participate in the conversation from the company side.
IsUserOnConversation - Indicates if the user is on the conversation.
IsUserOnConversationByID - Indicates if the user is on the conversation, fetch conversation first.
MessageEventFromJSON - get the message event as a JSON.
MessageEventToJSON - get the message event as a json.
NewConversationFromJSON - convert json string to conversation.
NewQueueEventPublisher - Create a new event publisher.
NewTopicEventPublisher - Create a new event publisher.
ParseEventMessage - parse the sns event.
ParseMessageEventFromQueue - parse the sqs event to a event message A bit confusing because MessageEvent is an internal representation of a message.
ParseUser - parse user from authorizer.
PublishMessageFeedEvent - Publish a new message feed.
SaveConversation - save (create/update) conversation.
SetBoostConversationID - Set the Boost conversation id.

# Structs

Company - the dynamodb representation of a company.
CompanyJSON - json representation of a company.
Conversation - conversation.
ConversationJSON - Conversation that can be serialized.
ConversationMessage - the conversation message.
ConversationMessageJSON - the conversation message representable in json.
EventMessage - Login params.
EventPublisher - the object that can publish events.
Notify - Phone numbers to notify.
UnauthorizedError - Error indicating user is not authorized for action.
User - pulled from user claims.