Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateKey ¶ added in v0.23.2
Types ¶
type FieldEncrypt ¶ added in v0.23.3
type FieldEncrypt struct {
// contains filtered or unexported fields
}
func NewFieldEncrypt ¶ added in v0.23.3
func NewFieldEncrypt(key string) (*FieldEncrypt, error)
func (*FieldEncrypt) Decrypt ¶ added in v0.23.3
func (ec *FieldEncrypt) Decrypt(data string) (string, error)
Decrypt decrypts ciphertext using AES-GCM
func (*FieldEncrypt) Encrypt ¶ added in v0.23.3
func (ec *FieldEncrypt) Encrypt(payload string) (string, error)
Encrypt encrypts plaintext using AES-GCM
func (*FieldEncrypt) LegacyDecrypt ¶ added in v0.29.2
func (ec *FieldEncrypt) LegacyDecrypt(data string) (string, error)
func (*FieldEncrypt) LegacyEncrypt ¶ added in v0.29.2
func (ec *FieldEncrypt) LegacyEncrypt(payload string) string
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is the implementation of the activity.Store interface backed by SQLite
func NewSQLiteStore ¶
NewSQLiteStore creates a new Store with an event table if not exists.
Click to show internal directories.
Click to hide internal directories.