Versions in this module Expand all Collapse all v0 v0.0.1 Jun 19, 2024 Changes in this version + const ContentLengthHeader + const ContentTypeHeader + const LoggerName + const ReserveCapacity + const TopicLength + var ErrShutdownInProgress error = errors.New("shutdown in progress") + type Bee struct + func (b *Bee) Shutdown() error + func (b *Bee) SyncingStopped() chan struct{} + type Beelite struct + func NewBee(ctx context.Context, addr string, publicKey *ecdsa.PublicKey, ...) (bl *Beelite, err error) + func Start(lo *LiteOptions, password string, verbosity string) (bl *Beelite, errMain error) + func (bl *Beelite) AddBytes(parentContext context.Context, batchHex string, encrypt bool, ...) (reference swarm.Address, err error) + func (bl *Beelite) AddChunk(parentContext context.Context, batchHex string, reader io.Reader, ...) (reference swarm.Address, err error) + func (bl *Beelite) AddDirBzz(parentContext context.Context, ...) (reference swarm.Address, err error) + func (bl *Beelite) AddFeed(ctx context.Context, batchHex, owner, topic string, encrypt bool, ...) (reference swarm.Address, err error) + func (bl *Beelite) AddFileBzz(parentContext context.Context, batchHex, filename, contentType string, ...) (reference swarm.Address, err error) + func (bl *Beelite) AddSOC(ctx context.Context, batchHex string, reader io.Reader, id []byte, ...) (reference swarm.Address, err error) + func (bl *Beelite) BeeNodeMode() api.BeeNodeMode + func (bl *Beelite) BuyStamp(amount *big.Int, depth uint64, label string, immutable bool) (common.Hash, []byte, error) + func (bl *Beelite) ChequebookAddr() common.Address + func (bl *Beelite) ChequebookBalance() (*big.Int, error) + func (bl *Beelite) ChequebookWithdraw(amount *big.Int) (common.Hash, error) + func (bl *Beelite) ConnectedPeerCount() int + func (bl *Beelite) GetAllBatches() []*postage.StampIssuer + func (bl *Beelite) GetBytes(parentContext context.Context, reference swarm.Address) (io.Reader, error) + func (bl *Beelite) GetBzz(parentContext context.Context, address swarm.Address) (io.Reader, string, error) + func (bl *Beelite) GetChunk(parentContext context.Context, reference swarm.Address) (swarm.Chunk, error) + func (bl *Beelite) GetUsableBatches() []*postage.StampIssuer + func (bl *Beelite) OverlayEthAddress() common.Address + type FileInfo struct + ContentType string + Name string + Path string + Reader io.Reader + Size int64 + type LiteOptions struct + BlockchainRpcEndpoint string + BootnodeMode bool + Bootnodes []string + CacheCapacity uint64 + ChequebookEnable bool + DBBlockCacheCapacity uint64 + DBDisableSeeksCompaction bool + DBOpenFilesLimit uint64 + DBWriteBufferSize uint64 + DataDir string + DebugAPIEnable bool + FullNodeMode bool + Mainnet bool + NATAddr string + NetworkID uint64 + PaymentThreshold string + RetrievalCaching bool + StaticNodes []string + SwapEnable bool + SwapInitialDeposit string + UsePostageSnapshot bool + WelcomeMessage string + type Topic [TopicLength]byte