Versions in this module Expand all Collapse all v0 v0.0.1 Mar 16, 2018 Changes in this version + func RunStories(t *testing.T, mock *MockClient, handler http.Handler, story StrideStory) + type Inbound struct + CloudID string + ConversationID string + Msg *stride.Payload + Sender string + Url string + func NewInbound(sender, url string, payload *stride.Payload) Inbound + type MockClient struct + func NewMockClient(ctrl *gomock.Controller) *MockClient + func (m *MockClient) ConvertDocToText(doc *stride.Document) (string, error) + func (m *MockClient) EXPECT() *MockClientMockRecorder + func (m *MockClient) GetConversation(cloudID, conversationID string) (*stride.ConversationCommon, error) + func (m *MockClient) GetConversationByName(cloudID, conversationID string) (*stride.ConversationCommon, error) + func (m *MockClient) GetUser(cloudID, userID string) (*stride.User, error) + func (m *MockClient) SendMessage(cloudID, conversationID string, payload *stride.Payload) error + func (m *MockClient) SendUserMessage(cloudID, userID string, payload *stride.Payload) error + func (m *MockClient) ValidateToken(tokenString string) (jwt.MapClaims, error) + type MockClientMockRecorder struct + func (mr *MockClientMockRecorder) ConvertDocToText(doc interface{}) *gomock.Call + func (mr *MockClientMockRecorder) GetConversation(cloudID, conversationID interface{}) *gomock.Call + func (mr *MockClientMockRecorder) GetConversationByName(cloudID, conversationID interface{}) *gomock.Call + func (mr *MockClientMockRecorder) GetUser(cloudID, userID interface{}) *gomock.Call + func (mr *MockClientMockRecorder) SendMessage(cloudID, conversationID, payload interface{}) *gomock.Call + func (mr *MockClientMockRecorder) SendUserMessage(cloudID, userID, payload interface{}) *gomock.Call + func (mr *MockClientMockRecorder) ValidateToken(tokenString interface{}) *gomock.Call + type Outbound struct + CloudID string + ConversationID string + Msg *stride.Payload + func NewOutbound(payload *stride.Payload) Outbound + func (x Outbound) ToUser(user string) Outbound + type StrideStory struct + MessagesIN []Inbound + MessagesOUT []Outbound