Documentation ¶
Index ¶
- Constants
- type Storage
- func (s *Storage) AddParticipants(ctx context.Context, dialogID model.DialogID, ...) error
- func (s *Storage) Close() error
- func (s *Storage) CreateDialog(ctx context.Context, id model.DialogID) error
- func (s *Storage) CreateMessage(ctx context.Context, params *model.Message) (*model.Message, error)
- func (s *Storage) DeleteDialog(ctx context.Context, dialogID model.DialogID) error
- func (s *Storage) DeleteMessage(ctx context.Context, dialogID model.DialogID, messageID model.MessageID) error
- func (s *Storage) DeleteParticipants(ctx context.Context, dialogID model.DialogID, ...) error
- func (s *Storage) Dialog() storage.DialogRepository
- func (s *Storage) GetDialogMessages(ctx context.Context, dialogID model.DialogID) ([]*model.Message, error)
- func (s *Storage) GetDialogParticipants(ctx context.Context, dialogID model.DialogID) ([]*model.Participant, error)
- func (s *Storage) Hosts() []string
- func (s *Storage) Master() sqlx.ExtContext
- func (s *Storage) Salt() string
- func (s *Storage) Slave() sqlx.ExtContext
Constants ¶
View Source
const ( DialogTable = "dialog_table" MessageTable = "message_table" ParticipantsTable = "participant_table" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func NewStorage ¶
func (*Storage) AddParticipants ¶
func (*Storage) CreateDialog ¶
func (*Storage) CreateMessage ¶
func (*Storage) DeleteDialog ¶
func (*Storage) DeleteMessage ¶
func (*Storage) DeleteParticipants ¶
func (*Storage) Dialog ¶
func (s *Storage) Dialog() storage.DialogRepository
func (*Storage) GetDialogMessages ¶
func (*Storage) GetDialogParticipants ¶
func (*Storage) Master ¶
func (s *Storage) Master() sqlx.ExtContext
func (*Storage) Slave ¶
func (s *Storage) Slave() sqlx.ExtContext
Click to show internal directories.
Click to hide internal directories.