Documentation
¶
Index ¶
- func CleanOldRecords(ctx context.Context)
- func DeleteKey(db *bolt.DB, bucketName string, key string) error
- func EnsureBucket(db *bolt.DB, bucketName string) error
- func ExistsKey(db *bolt.DB, bucketName string, key string) (bool, error)
- func GenerateKeyPair() error
- func GetAllData(db *bolt.DB, bucketName string) (map[string][]byte, error)
- func GetAllKeys(db *bolt.DB, bucketName string) ([]string, error)
- func GetData(db *bolt.DB, bucketName string, key string) ([]byte, error)
- func GetPrivateKey() ([]byte, error)
- func GetPublicKey() ([]byte, error)
- func OpenDatabase() (*bolt.DB, error)
- func ProcessAlignment(dbData model.SynchronizationRequest, receivedData model.SynchronizationRequest)
- func PutData(db *bolt.DB, bucketName string, key string, data []byte) error
- func ServerBootstrapSync(ctx context.Context)
- func SignMessage(message []byte) ([]byte, error)
- func StartTor() (string, error)
- func VerifySignature(message []byte, signature []byte, publicKey []byte) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanOldRecords ¶
func GenerateKeyPair ¶
func GenerateKeyPair() error
func GetPrivateKey ¶
func GetPublicKey ¶
func OpenDatabase ¶
func ProcessAlignment ¶
func ProcessAlignment(dbData model.SynchronizationRequest, receivedData model.SynchronizationRequest)
func ServerBootstrapSync ¶
func SignMessage ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.