Documentation ¶
Index ¶
- Variables
- type Flipper
- func (fp *Flipper) AddNewFlip(flip *types.Flip, local bool) error
- func (fp *Flipper) Clear()
- func (fp *Flipper) GetFlip(key []byte) (publicPart []byte, privatePart []byte, err error)
- func (fp *Flipper) GetFlipPrivateEncryptionKey() *ecies.PrivateKey
- func (fp *Flipper) GetFlipPublicEncryptionKey() *ecies.PrivateKey
- func (fp *Flipper) GetRawFlip(flipCid []byte) (*IpfsFlip, error)
- func (fp *Flipper) Has(c []byte) bool
- func (fp *Flipper) HasFlips() bool
- func (fp *Flipper) Initialize()
- func (fp *Flipper) IsFlipReady(key []byte) bool
- func (fp *Flipper) Load(cids [][]byte)
- func (fp *Flipper) PrepareFlip(flipPublicPart []byte, flipPrivatePart []byte) (cid.Cid, []byte, []byte, error)
- func (fp *Flipper) ReadFlip(cid []byte) (*types.Flip, error)
- func (fp *Flipper) UnpinFlip(flipCid []byte)
- type IpfsFlip
- type IpfsFlipOld
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DuplicateFlipError = errors.New("duplicate flip")
)
Functions ¶
This section is empty.
Types ¶
type Flipper ¶
type Flipper struct {
// contains filtered or unexported fields
}
func NewFlipper ¶
func (*Flipper) GetFlipPrivateEncryptionKey ¶
func (fp *Flipper) GetFlipPrivateEncryptionKey() *ecies.PrivateKey
func (*Flipper) GetFlipPublicEncryptionKey ¶
func (fp *Flipper) GetFlipPublicEncryptionKey() *ecies.PrivateKey
func (*Flipper) Initialize ¶
func (fp *Flipper) Initialize()
func (*Flipper) IsFlipReady ¶
func (*Flipper) PrepareFlip ¶
type IpfsFlipOld ¶
Click to show internal directories.
Click to hide internal directories.