Documentation ¶
Index ¶
- Variables
- type Flipper
- func (fp *Flipper) AddNewFlip(flip *types.Flip, local bool) error
- func (fp *Flipper) Clear()
- func (fp *Flipper) GetFlipFromMemory(key []byte) (publicPart []byte, privatePart []byte, err error)
- func (fp *Flipper) GetFlipPrivateEncryptionKey() *ecies.PrivateKey
- func (fp *Flipper) GetFlipPublicEncryptionKey() *ecies.PrivateKey
- func (fp *Flipper) GetFlipReadiness(hash common.Hash) bool
- func (fp *Flipper) GetRawFlip(flipCid []byte) (*IpfsFlip, error)
- func (fp *Flipper) HasFlipInMemory(hash common.Hash) bool
- func (fp *Flipper) Initialize()
- func (fp *Flipper) IsFlipAvailable(key []byte) bool
- func (fp *Flipper) LoadInMemory(cids [][]byte)
- func (fp *Flipper) PrepareFlip(flipPublicPart []byte, flipPrivatePart []byte) (cid.Cid, []byte, []byte, error)
- func (fp *Flipper) SetFlipReadiness(hash common.Hash)
- func (fp *Flipper) UnpinFlip(flipCid []byte)
- type IpfsFlip
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DuplicateFlipError = errors.New("duplicate flip") FlipIsMissingError = errors.New("flip is missing") )
Functions ¶
This section is empty.
Types ¶
type Flipper ¶
type Flipper struct {
// contains filtered or unexported fields
}
func NewFlipper ¶
func (*Flipper) GetFlipFromMemory ¶ added in v0.23.1
func (*Flipper) GetFlipPrivateEncryptionKey ¶
func (fp *Flipper) GetFlipPrivateEncryptionKey() *ecies.PrivateKey
func (*Flipper) GetFlipPublicEncryptionKey ¶
func (fp *Flipper) GetFlipPublicEncryptionKey() *ecies.PrivateKey
func (*Flipper) GetFlipReadiness ¶ added in v0.23.1
func (*Flipper) HasFlipInMemory ¶ added in v0.23.1
func (*Flipper) Initialize ¶
func (fp *Flipper) Initialize()
func (*Flipper) IsFlipAvailable ¶ added in v0.21.4
func (*Flipper) LoadInMemory ¶ added in v0.23.1
func (*Flipper) PrepareFlip ¶
func (*Flipper) SetFlipReadiness ¶ added in v0.23.1
Click to show internal directories.
Click to hide internal directories.