service

package
v0.0.0-...-9a44374 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2025 License: AGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanOldRecords

func CleanOldRecords(ctx context.Context)

func DeleteKey

func DeleteKey(db *bolt.DB, bucketName string, key string) error

func EnsureBucket

func EnsureBucket(db *bolt.DB, bucketName string) error

func ExistsKey

func ExistsKey(db *bolt.DB, bucketName string, key string) (bool, error)

func GenerateKeyPair

func GenerateKeyPair() error

func GetAllData

func GetAllData(db *bolt.DB, bucketName string) (map[string][]byte, error)

func GetAllKeys

func GetAllKeys(db *bolt.DB, bucketName string) ([]string, error)

func GetData

func GetData(db *bolt.DB, bucketName string, key string) ([]byte, error)

func GetPrivateKey

func GetPrivateKey() ([]byte, error)

func GetPublicKey

func GetPublicKey() ([]byte, error)

func OpenDatabase

func OpenDatabase() (*bolt.DB, error)

func ProcessAlignment

func ProcessAlignment(dbData model.SynchronizationRequest, receivedData model.SynchronizationRequest)

func PutData

func PutData(db *bolt.DB, bucketName string, key string, data []byte) error

func ServerBootstrapSync

func ServerBootstrapSync(ctx context.Context)

func SignMessage

func SignMessage(message []byte) ([]byte, error)

func StartTor

func StartTor() (string, error)

func VerifySignature

func VerifySignature(message []byte, signature []byte, publicKey []byte) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL