Documentation ¶
Index ¶
- func AddTx(tx *sqlx.Tx, vk *keys.EdX25519Key, b []byte, cipher Cipher) error
- func InitTables(db *sqlx.DB) error
- func PullIndexes(db *sqlx.DB) (map[keys.ID]int64, error)
- func PushIndexes(db *sqlx.DB) (map[keys.ID]int64, error)
- func SetLogger(l Logger)
- func Transact(db *sqlx.DB, txFn func(*sqlx.Tx) error) (err error)
- type Cipher
- type Context
- type CryptoBoxSealCipher
- type LogLevel
- type Logger
- type NoCipher
- type Receiver
- type Syncer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitTables ¶
Types ¶
type Cipher ¶
type Cipher interface {
Encrypt(b []byte, key *keys.EdX25519Key) ([]byte, error)
}
Cipher for encryption.
type CryptoBoxSealCipher ¶
type CryptoBoxSealCipher struct{}
func (CryptoBoxSealCipher) Encrypt ¶
func (c CryptoBoxSealCipher) Encrypt(b []byte, key *keys.EdX25519Key) ([]byte, error)
type Logger ¶
type Logger interface { Debugf(format string, args ...interface{}) Infof(format string, args ...interface{}) Warningf(format string, args ...interface{}) Errorf(format string, args ...interface{}) Fatalf(format string, args ...interface{}) }
Logger interface used in this package.
Click to show internal directories.
Click to hide internal directories.