Documentation ¶
Index ¶
- Constants
- func OverlayAddr(root, password string) (common.Address, error)
- type Bee
- func (b *Bee) AddBytes(parentContext context.Context, batchHex string, reader io.Reader) (reference swarm.Address, err error)
- func (b *Bee) AddChunk(parentContext context.Context, batchHex string, chunk swarm.Chunk) (swarm.Address, error)
- func (b *Bee) AddFeed(ctx context.Context, batchHex, owner, topic string) (reference swarm.Address, err error)
- func (b *Bee) AddFileBzz(parentContext context.Context, batchHex, filename, contentType string, ...) (reference swarm.Address, err error)
- func (b *Bee) AddSOC(ctx context.Context, batchHex string, ch swarm.Chunk) (reference swarm.Address, err error)
- func (b *Bee) Addr() common.Address
- func (b *Bee) BuyStamp(amount *big.Int, depth uint64, label string, immutable bool) ([]byte, error)
- func (b *Bee) ChequebookAddr() common.Address
- func (b *Bee) ChequebookBalance() (*big.Int, error)
- func (b *Bee) ChequebookWithdraw(amount *big.Int) (common.Hash, error)
- func (b *Bee) GetAllBatches() []*postage.StampIssuer
- func (b *Bee) GetBytes(parentContext context.Context, reference swarm.Address) (io.Reader, error)
- func (b *Bee) GetBzz(parentContext context.Context, address swarm.Address) (io.Reader, string, error)
- func (b *Bee) GetChunk(parentContext context.Context, reference swarm.Address) (swarm.Chunk, error)
- func (b *Bee) GetUsableBatches() []*postage.StampIssuer
- func (b *Bee) Shutdown() error
- func (b *Bee) Signer() crypto.Signer
- func (b *Bee) SyncingStopped() chan struct{}
- func (b *Bee) Topology() *topology.KadParams
- type Options
- type Topic
Constants ¶
View Source
const (
TopicLength = 32
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Bee ¶
type Bee struct {
// contains filtered or unexported fields
}
Bee client.
func (*Bee) AddFileBzz ¶
func (*Bee) ChequebookAddr ¶
func (*Bee) ChequebookWithdraw ¶
func (*Bee) GetAllBatches ¶
func (b *Bee) GetAllBatches() []*postage.StampIssuer
func (*Bee) GetUsableBatches ¶
func (b *Bee) GetUsableBatches() []*postage.StampIssuer
func (*Bee) SyncingStopped ¶
func (b *Bee) SyncingStopped() chan struct{}
type Options ¶
type Options struct { FullNodeMode bool Keystore string DataDir string Addr string NATAddr string WelcomeMessage string Bootnodes []string Logger logging.Logger SwapEndpoint string SwapFactoryAddress string SwapLegacyFactoryAddresses []string SwapInitialDeposit string SwapEnable bool WarmupTime time.Duration ChainID int64 ChequebookEnable bool ChainEnable bool DeployGasPrice string BlockTime uint64 Transaction string BlockHash string PostageContractAddress string PriceOracleAddress string PaymentThreshold string PaymentTolerance int64 PaymentEarly int64 UsePostageSnapshot bool Mainnet bool NetworkID uint64 Resync bool CacheCapacity uint64 DBOpenFilesLimit uint64 DBWriteBufferSize uint64 DBDisableSeeksCompaction bool DBBlockCacheCapacity uint64 RetrievalCaching bool }
type Topic ¶
type Topic [TopicLength]byte
Click to show internal directories.
Click to hide internal directories.