cells

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

func Apply(ctx context.Context, cell Cell, fn func([]byte) ([]byte, error)) error

func GetBytes

func GetBytes(ctx context.Context, cell Cell) ([]byte, error)

func NewMem

func NewMem() cells.Cell

Types

type Cell

type Cell = cells.Cell

func NewBoltCell

func NewBoltCell(db *bolt.DB, bucketPath []string, key []byte) Cell

func NewEncrypted

func NewEncrypted(inner cells.Cell, secret []byte) Cell

func NewSigned

func NewSigned(inner cells.Cell, pubKey p2p.PublicKey, privKey p2p.PrivateKey) Cell

Jump to

Keyboard shortcuts

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