Documentation ¶
Index ¶
- type Client
- func (_m *Client) ActivateSubscriptions() (int, error)
- func (_m *Client) CheckForDuplicateSubscription(_a0 *serializer.SubscriptionPayload) (bool, int, error)
- func (_m *Client) CreateSubscription(_a0 *serializer.SubscriptionPayload) (int, error)
- func (_m *Client) DeleteSubscription(subscriptionID string) (int, error)
- func (_m *Client) EditSubscription(subscriptionID string, subscription *serializer.SubscriptionPayload) (int, error)
- func (_m *Client) GetAllSubscriptions(channelID string, userID string, subscriptionType string, limit string, ...) ([]*serializer.SubscriptionResponse, int, error)
- func (_m *Client) GetRecordFromServiceNow(tableName string, sysID string) (*serializer.ServiceNowRecord, int, error)
- func (_m *Client) GetSubscription(subscriptionID string) (*serializer.SubscriptionResponse, int, error)
- func (_m *Client) SearchRecordsInServiceNow(tableName string, searchTerm string, limit string, offset string) ([]*serializer.ServiceNowPartialRecord, int, error)
- type Store
- func (_m *Store) DeleteUser(mattermostUserID string) error
- func (_m *Store) LoadUser(mattermostUserID string) (*serializer.User, error)
- func (_m *Store) StoreOAuth2State(state string) error
- func (_m *Store) StoreUser(user *serializer.User) error
- func (_m *Store) VerifyOAuth2State(state string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an autogenerated mock type for the Client type
func NewClient ¶
NewClient creates a new instance of Client. It also registers a cleanup function to assert the mocks expectations.
func (*Client) ActivateSubscriptions ¶
ActivateSubscriptions provides a mock function with given fields:
func (*Client) CheckForDuplicateSubscription ¶
func (_m *Client) CheckForDuplicateSubscription(_a0 *serializer.SubscriptionPayload) (bool, int, error)
CheckForDuplicateSubscription provides a mock function with given fields: _a0
func (*Client) CreateSubscription ¶
func (_m *Client) CreateSubscription(_a0 *serializer.SubscriptionPayload) (int, error)
CreateSubscription provides a mock function with given fields: _a0
func (*Client) DeleteSubscription ¶
DeleteSubscription provides a mock function with given fields: subscriptionID
func (*Client) EditSubscription ¶
func (_m *Client) EditSubscription(subscriptionID string, subscription *serializer.SubscriptionPayload) (int, error)
EditSubscription provides a mock function with given fields: subscriptionID, subscription
func (*Client) GetAllSubscriptions ¶
func (_m *Client) GetAllSubscriptions(channelID string, userID string, subscriptionType string, limit string, offset string) ([]*serializer.SubscriptionResponse, int, error)
GetAllSubscriptions provides a mock function with given fields: channelID, userID, subscriptionType, limit, offset
func (*Client) GetRecordFromServiceNow ¶
func (_m *Client) GetRecordFromServiceNow(tableName string, sysID string) (*serializer.ServiceNowRecord, int, error)
GetRecordFromServiceNow provides a mock function with given fields: tableName, sysID
func (*Client) GetSubscription ¶
func (_m *Client) GetSubscription(subscriptionID string) (*serializer.SubscriptionResponse, int, error)
GetSubscription provides a mock function with given fields: subscriptionID
func (*Client) SearchRecordsInServiceNow ¶
func (_m *Client) SearchRecordsInServiceNow(tableName string, searchTerm string, limit string, offset string) ([]*serializer.ServiceNowPartialRecord, int, error)
SearchRecordsInServiceNow provides a mock function with given fields: tableName, searchTerm, limit, offset
type Store ¶
Store is an autogenerated mock type for the Store type
func NewStore ¶
NewStore creates a new instance of Store. It also registers a cleanup function to assert the mocks expectations.
func (*Store) DeleteUser ¶
DeleteUser provides a mock function with given fields: mattermostUserID
func (*Store) LoadUser ¶
func (_m *Store) LoadUser(mattermostUserID string) (*serializer.User, error)
LoadUser provides a mock function with given fields: mattermostUserID
func (*Store) StoreOAuth2State ¶
StoreOAuth2State provides a mock function with given fields: state
func (*Store) StoreUser ¶
func (_m *Store) StoreUser(user *serializer.User) error
StoreUser provides a mock function with given fields: user
func (*Store) VerifyOAuth2State ¶
VerifyOAuth2State provides a mock function with given fields: state