Documentation
¶
Index ¶
- func Config() *runtime.Config
- func InsertChannel(rt *runtime.Runtime, uuid models.ChannelUUID, orgID models.OrgID, ...) models.ChannelID
- func InsertContact(rt *runtime.Runtime, orgID models.OrgID, name string) models.ContactID
- func InsertIncomingMsg(rt *runtime.Runtime, orgID models.OrgID, channelID models.ChannelID, ...) models.MsgID
- func InsertOrg(rt *runtime.Runtime, name string) models.OrgID
- func InsertOutgoingMsg(rt *runtime.Runtime, orgID models.OrgID, channelID models.ChannelID, ...) models.MsgID
- func InsertURN(rt *runtime.Runtime, orgID models.OrgID, contactID models.ContactID, ...) models.URNID
- func InsertUser(rt *runtime.Runtime, email, firstName, lastName, avatar string) models.UserID
- func ResetDB()
- func ResetValkey()
- func Runtime() (context.Context, *runtime.Runtime)
- type Client
- type MockCourier
- func (c *MockCourier) CreateMsg(ctx context.Context, ch *models.Channel, contact *models.Contact, text string) error
- func (c *MockCourier) ReportDelivered(ctx context.Context, ch *models.Channel, contact *models.Contact, ...) error
- func (c *MockCourier) StartChat(ctx context.Context, ch *models.Channel, chatID models.ChatID) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InsertChannel ¶
func InsertContact ¶
func InsertIncomingMsg ¶
func InsertOutgoingMsg ¶
func InsertUser ¶
Types ¶
type MockCourier ¶
type MockCourier struct {
Calls []string
// contains filtered or unexported fields
}
func NewMockCourier ¶
func NewMockCourier(rt *runtime.Runtime) *MockCourier
func (*MockCourier) ReportDelivered ¶
Click to show internal directories.
Click to hide internal directories.