Documentation ¶
Index ¶
- type Adapter
- type AppStateMutationMacs
- type AppStateSyncKeys
- type AppStateVersion
- type ChatSettings
- type Contacts
- type Device
- type IdentityKeys
- type MessageSecrets
- type MySql
- func (a *MySql) AlterTableDevice_AddColumnSigKey() string
- func (a *MySql) AlterTableDevice_SetNotNull() string
- func (a *MySql) CreateTableChatSettings() string
- func (a *MySql) CreateTableContacts() string
- func (a *MySql) CreateTableDevice() string
- func (a *MySql) CreateTableIdentityKeys() string
- func (a *MySql) CreateTableMessageSecrets() string
- func (a *MySql) CreateTablePreKeys() string
- func (a *MySql) CreateTablePrivacyTokens() string
- func (a *MySql) CreateTableSenderKeys() string
- func (a *MySql) CreateTableSessions() string
- func (a *MySql) CreateTableStateMutationMacs() string
- func (a *MySql) CreateTableStateSyncKeys() string
- func (a *MySql) CreateTableStateVersion() string
- func (a *MySql) CreateTableVersion() string
- func (a *MySql) DeleteAllIdentities() string
- func (a *MySql) DeleteAllSessions() string
- func (a *MySql) DeleteAllVersions() string
- func (a *MySql) DeleteAppStateMutationMACs(placeholder string) string
- func (a *MySql) DeleteAppStateVersion() string
- func (a *MySql) DeleteDevice() string
- func (a *MySql) DeleteIdentity() string
- func (a *MySql) DeleteNullSigKeys() string
- func (a *MySql) DeletePreKey() string
- func (a *MySql) DeleteSession() string
- func (a *MySql) FillSigKey() string
- func (a *MySql) GetAllContacts() string
- func (a *MySql) GetAllDevices() string
- func (a *MySql) GetAppStateMutationMAC() string
- func (a *MySql) GetAppStateSyncKey() string
- func (a *MySql) GetAppStateVersion() string
- func (a *MySql) GetChatSettings() string
- func (a *MySql) GetContact() string
- func (a *MySql) GetDevice() string
- func (a *MySql) GetIdentity() string
- func (a *MySql) GetLastPreKeyID() string
- func (a *MySql) GetMsgSecret() string
- func (a *MySql) GetPreKey() string
- func (a *MySql) GetPrivacyToken() string
- func (a *MySql) GetSenderKey() string
- func (a *MySql) GetSession() string
- func (a *MySql) GetUnUploadedPreKeys() string
- func (a *MySql) GetUploadedPreKeyCount() string
- func (a *MySql) GetVersion() string
- func (a *MySql) HasSession() string
- func (a *MySql) InsertDevice() string
- func (a *MySql) InsertNewVersion() string
- func (a *MySql) InsertPreKey() string
- func (a *MySql) MarkPreKeysAsUploaded() string
- func (a *MySql) PlaceholderCreate(size, repeat int) string
- func (a *MySql) PutAppStateMutationMACs(placeholder string) string
- func (a *MySql) PutAppStateSyncKey() string
- func (a *MySql) PutAppStateVersion() string
- func (a *MySql) PutBusinessName() string
- func (a *MySql) PutChatSetting(field string) string
- func (a *MySql) PutContactName() string
- func (a *MySql) PutIdentity() string
- func (a *MySql) PutManyContactNames(placeholder string) string
- func (a *MySql) PutMsgSecret() string
- func (a *MySql) PutPrivacyTokens(placeholder string) string
- func (a *MySql) PutPushName() string
- func (a *MySql) PutSenderKey() string
- func (a *MySql) PutSession() string
- type Postgres
- func (a *Postgres) AlterTableDevice_AddColumnSigKey() string
- func (a *Postgres) AlterTableDevice_SetNotNull() string
- func (a *Postgres) CreateTableChatSettings() string
- func (a *Postgres) CreateTableContacts() string
- func (a *Postgres) CreateTableDevice() string
- func (a *Postgres) CreateTableIdentityKeys() string
- func (a *Postgres) CreateTableMessageSecrets() string
- func (a *Postgres) CreateTablePreKeys() string
- func (a *Postgres) CreateTablePrivacyTokens() string
- func (a *Postgres) CreateTableSenderKeys() string
- func (a *Postgres) CreateTableSessions() string
- func (a *Postgres) CreateTableStateMutationMacs() string
- func (a *Postgres) CreateTableStateSyncKeys() string
- func (a *Postgres) CreateTableStateVersion() string
- func (a *Postgres) CreateTableVersion() string
- func (a *Postgres) DeleteAllIdentities() string
- func (a *Postgres) DeleteAllSessions() string
- func (a *Postgres) DeleteAllVersions() string
- func (a *Postgres) DeleteAppStateMutationMACs(_ string) string
- func (a *Postgres) DeleteAppStateVersion() string
- func (a *Postgres) DeleteDevice() string
- func (a *Postgres) DeleteIdentity() string
- func (a *Postgres) DeleteNullSigKeys() string
- func (a *Postgres) DeletePreKey() string
- func (a *Postgres) DeleteSession() string
- func (a *Postgres) FillSigKey() string
- func (a *Postgres) GetAllContacts() string
- func (a *Postgres) GetAllDevices() string
- func (a *Postgres) GetAppStateMutationMAC() string
- func (a *Postgres) GetAppStateSyncKey() string
- func (a *Postgres) GetAppStateVersion() string
- func (a *Postgres) GetChatSettings() string
- func (a *Postgres) GetContact() string
- func (a *Postgres) GetDevice() string
- func (a *Postgres) GetIdentity() string
- func (a *Postgres) GetLastPreKeyID() string
- func (a *Postgres) GetMsgSecret() string
- func (a *Postgres) GetPreKey() string
- func (a *Postgres) GetPrivacyToken() string
- func (a *Postgres) GetSenderKey() string
- func (a *Postgres) GetSession() string
- func (a *Postgres) GetUnUploadedPreKeys() string
- func (a *Postgres) GetUploadedPreKeyCount() string
- func (a *Postgres) GetVersion() string
- func (a *Postgres) HasSession() string
- func (a *Postgres) InsertDevice() string
- func (a *Postgres) InsertNewVersion() string
- func (a *Postgres) InsertPreKey() string
- func (a *Postgres) MarkPreKeysAsUploaded() string
- func (a *Postgres) PlaceholderCreate(size, repeat int) string
- func (a *Postgres) PutAppStateMutationMACs(placeholder string) string
- func (a *Postgres) PutAppStateSyncKey() string
- func (a *Postgres) PutAppStateVersion() string
- func (a *Postgres) PutBusinessName() string
- func (a *Postgres) PutChatSetting(field string) string
- func (a *Postgres) PutContactName() string
- func (a *Postgres) PutIdentity() string
- func (a *Postgres) PutManyContactNames(placeholder string) string
- func (a *Postgres) PutMsgSecret() string
- func (a *Postgres) PutPrivacyTokens(placeholders string) string
- func (a *Postgres) PutPushName() string
- func (a *Postgres) PutSenderKey() string
- func (a *Postgres) PutSession() string
- type PreKeys
- type PrivacyTokens
- type SenderKeys
- type Sessions
- type Sqlite
- func (a *Sqlite) AlterTableDevice_AddColumnSigKey() string
- func (a *Sqlite) AlterTableDevice_SetNotNull() string
- func (a *Sqlite) CreateTableChatSettings() string
- func (a *Sqlite) CreateTableContacts() string
- func (a *Sqlite) CreateTableDevice() string
- func (a *Sqlite) CreateTableIdentityKeys() string
- func (a *Sqlite) CreateTableMessageSecrets() string
- func (a *Sqlite) CreateTablePreKeys() string
- func (a *Sqlite) CreateTablePrivacyTokens() string
- func (a *Sqlite) CreateTableSenderKeys() string
- func (a *Sqlite) CreateTableSessions() string
- func (a *Sqlite) CreateTableStateMutationMacs() string
- func (a *Sqlite) CreateTableStateSyncKeys() string
- func (a *Sqlite) CreateTableStateVersion() string
- func (a *Sqlite) CreateTableVersion() string
- func (a *Sqlite) DeleteAllIdentities() string
- func (a *Sqlite) DeleteAllSessions() string
- func (a *Sqlite) DeleteAllVersions() string
- func (a *Sqlite) DeleteAppStateMutationMACs(placeholder string) string
- func (a *Sqlite) DeleteAppStateVersion() string
- func (a *Sqlite) DeleteDevice() string
- func (a *Sqlite) DeleteIdentity() string
- func (a *Sqlite) DeleteNullSigKeys() string
- func (a *Sqlite) DeletePreKey() string
- func (a *Sqlite) DeleteSession() string
- func (a *Sqlite) FillSigKey() string
- func (a *Sqlite) GetAllContacts() string
- func (a *Sqlite) GetAllDevices() string
- func (a *Sqlite) GetAppStateMutationMAC() string
- func (a *Sqlite) GetAppStateSyncKey() string
- func (a *Sqlite) GetAppStateVersion() string
- func (a *Sqlite) GetChatSettings() string
- func (a *Sqlite) GetContact() string
- func (a *Sqlite) GetDevice() string
- func (a *Sqlite) GetIdentity() string
- func (a *Sqlite) GetLastPreKeyID() string
- func (a *Sqlite) GetMsgSecret() string
- func (a *Sqlite) GetPreKey() string
- func (a *Sqlite) GetPrivacyToken() string
- func (a *Sqlite) GetSenderKey() string
- func (a *Sqlite) GetSession() string
- func (a *Sqlite) GetUnUploadedPreKeys() string
- func (a *Sqlite) GetUploadedPreKeyCount() string
- func (a *Sqlite) GetVersion() string
- func (a *Sqlite) HasSession() string
- func (a *Sqlite) InsertDevice() string
- func (a *Sqlite) InsertNewVersion() string
- func (a *Sqlite) InsertPreKey() string
- func (a *Sqlite) MarkPreKeysAsUploaded() string
- func (a *Sqlite) PlaceholderCreate(size, repeat int) string
- func (a *Sqlite) PutAppStateMutationMACs(placeholder string) string
- func (a *Sqlite) PutAppStateSyncKey() string
- func (a *Sqlite) PutAppStateVersion() string
- func (a *Sqlite) PutBusinessName() string
- func (a *Sqlite) PutChatSetting(field string) string
- func (a *Sqlite) PutContactName() string
- func (a *Sqlite) PutIdentity() string
- func (a *Sqlite) PutManyContactNames(placeholder string) string
- func (a *Sqlite) PutMsgSecret() string
- func (a *Sqlite) PutPrivacyTokens(placeholder string) string
- func (a *Sqlite) PutPushName() string
- func (a *Sqlite) PutSenderKey() string
- func (a *Sqlite) PutSession() string
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter interface { Version Device IdentityKeys PreKeys Sessions SenderKeys AppStateSyncKeys AppStateVersion AppStateMutationMacs Contacts ChatSettings MessageSecrets PrivacyTokens PlaceholderCreate(int, int) string }
Adapter store all available queries to easily change the drivers
func NewByDialect ¶
type AppStateMutationMacs ¶
type AppStateMutationMacs interface { CreateTableStateMutationMacs() string PutAppStateMutationMACs(string) string DeleteAppStateMutationMACs(string) string GetAppStateMutationMAC() string }
AppStateMutationMacs represents the table whatsmeow_app_state_mutation_macs
type AppStateSyncKeys ¶
type AppStateSyncKeys interface { CreateTableStateSyncKeys() string PutAppStateSyncKey() string GetAppStateSyncKey() string }
AppStateSyncKeys represents the table whatsmeow_app_state_sync_keys
type AppStateVersion ¶
type AppStateVersion interface { CreateTableStateVersion() string PutAppStateVersion() string GetAppStateVersion() string DeleteAppStateVersion() string }
AppStateVersion represents the table whatsmeow_app_state_version
type ChatSettings ¶
type ChatSettings interface { CreateTableChatSettings() string PutChatSetting(string) string GetChatSettings() string }
ChatSettings represents the table whatsmeow_chat_settings
type Contacts ¶
type Contacts interface { CreateTableContacts() string PutContactName() string PutManyContactNames(string) string PutPushName() string PutBusinessName() string GetContact() string GetAllContacts() string }
Contacts represents the table whatsmeow_contacts
type Device ¶
type Device interface { CreateTableDevice() string AlterTableDevice_AddColumnSigKey() string FillSigKey() string DeleteNullSigKeys() string AlterTableDevice_SetNotNull() string GetAllDevices() string GetDevice() string InsertDevice() string DeleteDevice() string }
Device represents the table whatsmeow_device
type IdentityKeys ¶
type IdentityKeys interface { CreateTableIdentityKeys() string PutIdentity() string DeleteAllIdentities() string DeleteIdentity() string GetIdentity() string }
IdentityKeys represents the table whatsmeow_identity_keys
type MessageSecrets ¶
type MessageSecrets interface { CreateTableMessageSecrets() string PutMsgSecret() string GetMsgSecret() string }
MessageSecrets represents the table whatsmeow_message_secrets
type MySql ¶
type MySql struct{}
func (*MySql) AlterTableDevice_AddColumnSigKey ¶
func (*MySql) AlterTableDevice_SetNotNull ¶
func (*MySql) CreateTableChatSettings ¶
func (*MySql) CreateTableContacts ¶
func (*MySql) CreateTableDevice ¶
func (*MySql) CreateTableIdentityKeys ¶
func (*MySql) CreateTableMessageSecrets ¶
func (*MySql) CreateTablePreKeys ¶
func (*MySql) CreateTablePrivacyTokens ¶
func (*MySql) CreateTableSenderKeys ¶
func (*MySql) CreateTableSessions ¶
func (*MySql) CreateTableStateMutationMacs ¶
func (*MySql) CreateTableStateSyncKeys ¶
func (*MySql) CreateTableStateVersion ¶
func (*MySql) CreateTableVersion ¶
func (*MySql) DeleteAllIdentities ¶
func (*MySql) DeleteAllSessions ¶
func (*MySql) DeleteAllVersions ¶
func (*MySql) DeleteAppStateMutationMACs ¶
func (*MySql) DeleteAppStateVersion ¶
func (*MySql) DeleteDevice ¶
func (*MySql) DeleteIdentity ¶
func (*MySql) DeleteNullSigKeys ¶
func (*MySql) DeletePreKey ¶
func (*MySql) DeleteSession ¶
func (*MySql) FillSigKey ¶
func (*MySql) GetAllContacts ¶
func (*MySql) GetAllDevices ¶
func (*MySql) GetAppStateMutationMAC ¶
func (*MySql) GetAppStateSyncKey ¶
func (*MySql) GetAppStateVersion ¶
func (*MySql) GetChatSettings ¶
func (*MySql) GetContact ¶
func (*MySql) GetIdentity ¶
func (*MySql) GetLastPreKeyID ¶
func (*MySql) GetMsgSecret ¶
func (*MySql) GetPrivacyToken ¶
func (*MySql) GetSenderKey ¶
func (*MySql) GetSession ¶
func (*MySql) GetUnUploadedPreKeys ¶
func (*MySql) GetUploadedPreKeyCount ¶
func (*MySql) GetVersion ¶
func (*MySql) HasSession ¶
func (*MySql) InsertDevice ¶
func (*MySql) InsertNewVersion ¶
func (*MySql) InsertPreKey ¶
func (*MySql) MarkPreKeysAsUploaded ¶
func (*MySql) PlaceholderCreate ¶
func (*MySql) PutAppStateMutationMACs ¶
func (*MySql) PutAppStateSyncKey ¶
func (*MySql) PutAppStateVersion ¶
func (*MySql) PutBusinessName ¶
func (*MySql) PutChatSetting ¶
func (*MySql) PutContactName ¶
func (*MySql) PutIdentity ¶
func (*MySql) PutManyContactNames ¶
func (*MySql) PutMsgSecret ¶
func (*MySql) PutPrivacyTokens ¶
func (*MySql) PutPushName ¶
func (*MySql) PutSenderKey ¶
func (*MySql) PutSession ¶
type Postgres ¶
type Postgres struct{}
func (*Postgres) AlterTableDevice_AddColumnSigKey ¶
func (*Postgres) AlterTableDevice_SetNotNull ¶
func (*Postgres) CreateTableChatSettings ¶
func (*Postgres) CreateTableContacts ¶
func (*Postgres) CreateTableDevice ¶
func (*Postgres) CreateTableIdentityKeys ¶
func (*Postgres) CreateTableMessageSecrets ¶
func (*Postgres) CreateTablePreKeys ¶
func (*Postgres) CreateTablePrivacyTokens ¶
func (*Postgres) CreateTableSenderKeys ¶
func (*Postgres) CreateTableSessions ¶
func (*Postgres) CreateTableStateMutationMacs ¶
func (*Postgres) CreateTableStateSyncKeys ¶
func (*Postgres) CreateTableStateVersion ¶
func (*Postgres) CreateTableVersion ¶
func (*Postgres) DeleteAllIdentities ¶
func (*Postgres) DeleteAllSessions ¶
func (*Postgres) DeleteAllVersions ¶
func (*Postgres) DeleteAppStateMutationMACs ¶
func (*Postgres) DeleteAppStateVersion ¶
func (*Postgres) DeleteDevice ¶
func (*Postgres) DeleteIdentity ¶
func (*Postgres) DeleteNullSigKeys ¶
func (*Postgres) DeletePreKey ¶
func (*Postgres) DeleteSession ¶
func (*Postgres) FillSigKey ¶
func (*Postgres) GetAllContacts ¶
func (*Postgres) GetAllDevices ¶
func (*Postgres) GetAppStateMutationMAC ¶
func (*Postgres) GetAppStateSyncKey ¶
func (*Postgres) GetAppStateVersion ¶
func (*Postgres) GetChatSettings ¶
func (*Postgres) GetContact ¶
func (*Postgres) GetIdentity ¶
func (*Postgres) GetLastPreKeyID ¶
func (*Postgres) GetMsgSecret ¶
func (*Postgres) GetPrivacyToken ¶
func (*Postgres) GetSenderKey ¶
func (*Postgres) GetSession ¶
func (*Postgres) GetUnUploadedPreKeys ¶
func (*Postgres) GetUploadedPreKeyCount ¶
func (*Postgres) GetVersion ¶
func (*Postgres) HasSession ¶
func (*Postgres) InsertDevice ¶
func (*Postgres) InsertNewVersion ¶
func (*Postgres) InsertPreKey ¶
func (*Postgres) MarkPreKeysAsUploaded ¶
func (*Postgres) PlaceholderCreate ¶
func (*Postgres) PutAppStateMutationMACs ¶
func (*Postgres) PutAppStateSyncKey ¶
func (*Postgres) PutAppStateVersion ¶
func (*Postgres) PutBusinessName ¶
func (*Postgres) PutChatSetting ¶
func (*Postgres) PutContactName ¶
func (*Postgres) PutIdentity ¶
func (*Postgres) PutManyContactNames ¶
func (*Postgres) PutMsgSecret ¶
func (*Postgres) PutPrivacyTokens ¶
func (*Postgres) PutPushName ¶
func (*Postgres) PutSenderKey ¶
func (*Postgres) PutSession ¶
type PreKeys ¶
type PreKeys interface { CreateTablePreKeys() string GetLastPreKeyID() string InsertPreKey() string GetUnUploadedPreKeys() string GetPreKey() string DeletePreKey() string MarkPreKeysAsUploaded() string GetUploadedPreKeyCount() string }
PreKeys represents the table whatsmeow_pre_keys
type PrivacyTokens ¶
type PrivacyTokens interface { CreateTablePrivacyTokens() string PutPrivacyTokens(string) string GetPrivacyToken() string }
PrivacyTokens represents the table whatsmeow_privacy_tokens
type SenderKeys ¶
type SenderKeys interface { CreateTableSenderKeys() string GetSenderKey() string PutSenderKey() string }
SenderKeys represents the table whatsmeow_sender_keys
type Sessions ¶
type Sessions interface { CreateTableSessions() string GetSession() string HasSession() string PutSession() string DeleteAllSessions() string DeleteSession() string }
Sessions represents the table whatsmeow_sessions
type Sqlite ¶
type Sqlite struct {
Default Adapter
}