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