Documentation ¶
Index ¶
- Constants
- Variables
- type Bee
- type Beelite
- func (bl *Beelite) AddBytes(parentContext context.Context, batchHex string, encrypt bool, reader io.Reader) (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
- type LiteOptions
- type Options
- type Topic
Constants ¶
View Source
const ( ContentTypeHeader = "Content-Type" ContentLengthHeader = "Content-Length" )
View Source
const (
LoggerName = "beelite"
)
View Source
const (
ReserveCapacity = 4_194_304 // 2^22 chunks
)
View Source
const (
TopicLength = 32
)
Variables ¶
View Source
var ErrShutdownInProgress error = errors.New("shutdown in progress")
Functions ¶
This section is empty.
Types ¶
type Bee ¶
type Bee struct {
// contains filtered or unexported fields
}
func (*Bee) SyncingStopped ¶
func (b *Bee) SyncingStopped() chan struct{}
type Beelite ¶
type Beelite struct {
// contains filtered or unexported fields
}
func Start ¶
func Start(lo *LiteOptions, password string, verbosity string) (bl *Beelite, errMain error)
func (*Beelite) AddFileBzz ¶
func (*Beelite) BeeNodeMode ¶ added in v0.0.3
func (bl *Beelite) BeeNodeMode() api.BeeNodeMode
func (*Beelite) ChequebookAddr ¶
func (*Beelite) ChequebookWithdraw ¶
func (*Beelite) ConnectedPeerCount ¶ added in v0.0.3
func (*Beelite) GetAllBatches ¶
func (bl *Beelite) GetAllBatches() []*postage.StampIssuer
func (*Beelite) GetUsableBatches ¶
func (bl *Beelite) GetUsableBatches() []*postage.StampIssuer
func (*Beelite) OverlayEthAddress ¶ added in v0.0.2
type LiteOptions ¶ added in v0.0.2
type LiteOptions struct { FullNodeMode bool BootnodeMode bool Bootnodes []string StaticNodes []string DataDir string WelcomeMessage string BlockchainRpcEndpoint string SwapInitialDeposit string PaymentThreshold string SwapEnable bool ChequebookEnable bool UsePostageSnapshot bool DebugAPIEnable bool Mainnet bool NetworkID uint64 NATAddr string CacheCapacity uint64 DBOpenFilesLimit uint64 DBWriteBufferSize uint64 DBBlockCacheCapacity uint64 DBDisableSeeksCompaction bool RetrievalCaching bool }
type Options ¶
type Options struct { DataDir string CacheCapacity uint64 DBOpenFilesLimit uint64 DBWriteBufferSize uint64 DBBlockCacheCapacity uint64 DBDisableSeeksCompaction bool APIAddr string DebugAPIAddr string Addr string NATAddr string EnableWS bool WelcomeMessage string Bootnodes []string CORSAllowedOrigins []string Logger log.Logger TracingEnabled bool TracingEndpoint string TracingServiceName string PaymentThreshold string PaymentTolerance int64 PaymentEarly int64 ResolverConnectionCfgs []multiresolver.ConnectionConfig RetrievalCaching bool BootnodeMode bool BlockchainRpcEndpoint string SwapFactoryAddress string SwapLegacyFactoryAddresses []string SwapInitialDeposit string SwapEnable bool ChequebookEnable bool FullNodeMode bool PostageContractAddress string PostageContractStartBlock uint64 StakingContractAddress string PriceOracleAddress string RedistributionContractAddress string BlockTime time.Duration DeployGasPrice string WarmupTime time.Duration ChainID int64 Resync bool BlockProfile bool MutexProfile bool StaticNodes []swarm.Address AllowPrivateCIDRs bool Restricted bool TokenEncryptionKey string AdminPasswordHash string UsePostageSnapshot bool EnableStorageIncentives bool StatestoreCacheCapacity uint64 TargetNeighborhood string }
type Topic ¶
type Topic [TopicLength]byte
Click to show internal directories.
Click to hide internal directories.