data

package
v0.0.0-...-9585d8b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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) Close

func (s *Storage) Close(ctx context.Context) (err error)

func (*Storage) CreateNewPersonalMessageV1

func (s *Storage) CreateNewPersonalMessageV1(ctx context.Context, sender string, message *models.NewPersonalMessageV1) (id int64, timestamp int64, err error)

func (*Storage) DeleteMessageData

func (s *Storage) DeleteMessageData(ctx context.Context, id, timestamp int64) (newTimestamp int64, err error)

func (*Storage) EditMessageText

func (s *Storage) EditMessageText(ctx context.Context, id, timestamp int64, text string) (newTimestamp int64, err error)

func (*Storage) MessageUpdatesV1

func (s *Storage) MessageUpdatesV1(ctx context.Context, userId string, after int64, limit int) (*models.MessageUpdatesV1, error)

func (*Storage) Open

func (s *Storage) Open() (err error)

func (*Storage) PersonalMessageV1

func (s *Storage) PersonalMessageV1(ctx context.Context, userId string, messageId int64) (*models.PersonalMessageV1, error)

func (*Storage) SetMessageReadState

func (s *Storage) SetMessageReadState(ctx context.Context, id, timestamp int64, read bool) (newTimestamp int64, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL