Documentation
¶
Index ¶
- type ErrMessageDeleted
- type ErrMessageNotModified
- type ErrTimestampIsNotMatch
- type Storage
- func (s *Storage) Close(ctx context.Context) (err error)
- func (s *Storage) CreateNewPersonalMessageV1(ctx context.Context, sender string, message *models.NewPersonalMessageV1) (id int64, timestamp int64, err error)
- func (s *Storage) DeleteMessageData(ctx context.Context, id, timestamp int64) (newTimestamp int64, err error)
- func (s *Storage) EditMessageText(ctx context.Context, id, timestamp int64, text string) (newTimestamp int64, err error)
- func (s *Storage) MessageUpdatesV1(ctx context.Context, userId string, after int64, limit int) (*models.MessageUpdatesV1, error)
- func (s *Storage) Open() (err error)
- func (s *Storage) PersonalMessageV1(ctx context.Context, userId string, messageId int64) (*models.PersonalMessageV1, error)
- func (s *Storage) SetMessageReadState(ctx context.Context, id, timestamp int64, read bool) (newTimestamp int64, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrMessageDeleted ¶
type ErrMessageDeleted struct{}
func (*ErrMessageDeleted) Error ¶
func (e *ErrMessageDeleted) Error() string
func (*ErrMessageDeleted) ImplementsMessageDeletedError ¶
func (e *ErrMessageDeleted) ImplementsMessageDeletedError()
type ErrMessageNotModified ¶
type ErrMessageNotModified struct{}
func (*ErrMessageNotModified) Error ¶
func (e *ErrMessageNotModified) Error() string
func (*ErrMessageNotModified) ImplementsMessageNotModifiedError ¶
func (e *ErrMessageNotModified) ImplementsMessageNotModifiedError()
type ErrTimestampIsNotMatch ¶
type ErrTimestampIsNotMatch struct{}
func (*ErrTimestampIsNotMatch) Error ¶
func (e *ErrTimestampIsNotMatch) Error() string
func (*ErrTimestampIsNotMatch) ImplementsTimestampIsNotMatchError ¶
func (e *ErrTimestampIsNotMatch) ImplementsTimestampIsNotMatchError()
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func (*Storage) CreateNewPersonalMessageV1 ¶
func (*Storage) DeleteMessageData ¶
func (*Storage) EditMessageText ¶
func (*Storage) MessageUpdatesV1 ¶
func (*Storage) PersonalMessageV1 ¶
Click to show internal directories.
Click to hide internal directories.