Documentation ¶
Index ¶
- type CreateChatParams
- type CreateMessageParams
- type CreateParticipantParams
- type Database
- func (database *Database) Close() error
- func (database *Database) CreateChat(ctx context.Context, params CreateChatParams) (int64, error)
- func (database *Database) CreateMessage(ctx context.Context, params CreateMessageParams) error
- func (database *Database) CreateParticipant(ctx context.Context, params CreateParticipantParams) error
- func (database *Database) CreatePassword(ctx context.Context, salt []byte) error
- func (database *Database) GetChat(ctx context.Context, chatID int64) (GetChatChat, error)
- func (database *Database) GetChats(ctx context.Context) ([]GetChatsChat, error)
- func (database *Database) GetMessages(ctx context.Context, chatID int64) ([]Message, error)
- func (database *Database) GetNextSequenceNumber(ctx context.Context, chatID int64) (int64, error)
- func (database *Database) GetParticipants(ctx context.Context, chatID int64) (map[string]*Participant, error)
- func (database *Database) GetPassword(ctx context.Context) ([]byte, error)
- func (database *Database) SetEncryptionKey(privateKey []byte) error
- func (database *Database) UpdateChat(ctx context.Context, params UpdateChatParams) error
- func (database *Database) UpdateParticipant(ctx context.Context, params UpdateParticipantParams) error
- func (database *Database) WithTx(f func(transaction *Database) error) error
- type GetChatChat
- type GetChatsChat
- type Message
- type Participant
- type UpdateChatParams
- type UpdateParticipantParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateChatParams ¶
type CreateChatParams struct { PrivateIdentityKey ed25519.PrivateKey Title string Description string }
type CreateMessageParams ¶
type CreateParticipantParams ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func (*Database) CreateChat ¶
func (*Database) CreateMessage ¶
func (database *Database) CreateMessage(ctx context.Context, params CreateMessageParams) error
func (*Database) CreateParticipant ¶
func (database *Database) CreateParticipant(ctx context.Context, params CreateParticipantParams) error
func (*Database) CreatePassword ¶
func (*Database) GetChats ¶
func (database *Database) GetChats(ctx context.Context) ([]GetChatsChat, error)
func (*Database) GetMessages ¶
func (*Database) GetNextSequenceNumber ¶
func (*Database) GetParticipants ¶
func (*Database) GetPassword ¶
func (*Database) SetEncryptionKey ¶
func (*Database) UpdateChat ¶
func (database *Database) UpdateChat(ctx context.Context, params UpdateChatParams) error
func (*Database) UpdateParticipant ¶
func (database *Database) UpdateParticipant(ctx context.Context, params UpdateParticipantParams) error
type GetChatChat ¶
type GetChatChat struct { ChatID int64 Title string Description string PrivateIdentityKey ed25519.PrivateKey }
type GetChatsChat ¶
type Participant ¶
type UpdateChatParams ¶
type UpdateParticipantParams ¶
Click to show internal directories.
Click to hide internal directories.