Documentation ¶
Index ¶
- type Storage
- func (_m *Storage) CreateNewPersonalMessageV1(ctx context.Context, sender string, data *models.NewPersonalMessageV1) (int64, int64, error)
- func (_m *Storage) DeleteMessageData(ctx context.Context, id int64, timestamp int64) (int64, error)
- func (_m *Storage) EditMessageText(ctx context.Context, id int64, timestamp int64, text string) (int64, error)
- func (_m *Storage) MessageUpdatesV1(ctx context.Context, userId string, after int64, limit int) (*models.MessageUpdatesV1, error)
- func (_m *Storage) PersonalMessageV1(ctx context.Context, userId string, messageId int64) (*models.PersonalMessageV1, error)
- func (_m *Storage) SetMessageReadState(ctx context.Context, id int64, timestamp int64, read bool) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
Storage is an autogenerated mock type for the Storage type
func NewStorage ¶
NewStorage creates a new instance of Storage. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Storage) CreateNewPersonalMessageV1 ¶
func (_m *Storage) CreateNewPersonalMessageV1(ctx context.Context, sender string, data *models.NewPersonalMessageV1) (int64, int64, error)
CreateNewPersonalMessageV1 provides a mock function with given fields: ctx, sender, data
func (*Storage) DeleteMessageData ¶
DeleteMessageData provides a mock function with given fields: ctx, id, timestamp
func (*Storage) EditMessageText ¶
func (_m *Storage) EditMessageText(ctx context.Context, id int64, timestamp int64, text string) (int64, error)
EditMessageText provides a mock function with given fields: ctx, id, timestamp, text
func (*Storage) MessageUpdatesV1 ¶
func (_m *Storage) MessageUpdatesV1(ctx context.Context, userId string, after int64, limit int) (*models.MessageUpdatesV1, error)
MessageUpdatesV1 provides a mock function with given fields: ctx, userId, after, limit
func (*Storage) PersonalMessageV1 ¶
func (_m *Storage) PersonalMessageV1(ctx context.Context, userId string, messageId int64) (*models.PersonalMessageV1, error)
PersonalMessageV1 provides a mock function with given fields: ctx, userId, messageId