Documentation ¶
Overview ¶
Package api provides the functionality of the Bee client-facing HTTP API.
Index ¶
- Constants
- Variables
- type BeeNodeMode
- type ExtraOptions
- type FileInfo
- type Options
- type Peer
- type Service
- func (s *Service) Close() error
- func (s *Service) Configure(signer crypto.Signer, auth authenticator, tracer *tracing.Tracer, o Options, ...) <-chan *pusher.Op
- func (s *Service) Metrics() []prometheus.Collector
- func (s *Service) MountAPI()
- func (s *Service) MountDebug(restricted bool)
- func (s *Service) MountTechnicalDebug()
- func (s *Service) MustRegisterMetrics(cs ...prometheus.Collector)
- func (s *Service) SetP2P(p2p p2p.DebugService)
- func (s *Service) SetSwarmAddress(addr *swarm.Address)
- type UpgradedResponseWriter
Constants ¶
View Source
const ( SwarmPinHeader = "Swarm-Pin" SwarmTagHeader = "Swarm-Tag" SwarmEncryptHeader = "Swarm-Encrypt" SwarmIndexDocumentHeader = "Swarm-Index-Document" SwarmErrorDocumentHeader = "Swarm-Error-Document" SwarmFeedIndexHeader = "Swarm-Feed-Index" SwarmFeedIndexNextHeader = "Swarm-Feed-Index-Next" SwarmCollectionHeader = "Swarm-Collection" SwarmPostageBatchIdHeader = "Swarm-Postage-Batch-Id" SwarmDeferredUploadHeader = "Swarm-Deferred-Upload" )
Variables ¶
View Source
var Version = "0.0.0"
Version is set in the build process.
Functions ¶
This section is empty.
Types ¶
type BeeNodeMode ¶ added in v1.6.2
type BeeNodeMode uint
const ( LightMode BeeNodeMode = iota FullMode DevMode UltraLightMode )
func (BeeNodeMode) String ¶ added in v1.6.2
func (b BeeNodeMode) String() string
type ExtraOptions ¶ added in v1.6.2
type ExtraOptions struct { Pingpong pingpong.Interface TopologyDriver topology.Driver LightNodes *lightnode.Container Accounting accounting.Interface Pseudosettle settlement.Interface Swap swap.Interface Chequebook chequebook.Service BlockTime *big.Int Tags *tags.Tags Storer storage.Storer Resolver resolver.Interface Pss pss.Interface TraversalService traversal.Traverser Pinning pinning.Interface FeedFactory feeds.Factory Post postage.Service PostageContract postagecontract.Interface Steward steward.Interface SyncStatus func() (bool, error) }
type Service ¶
func (*Service) Configure ¶ added in v1.6.2
func (s *Service) Configure(signer crypto.Signer, auth authenticator, tracer *tracing.Tracer, o Options, e ExtraOptions, chainID int64, erc20 erc20.Service) <-chan *pusher.Op
Configure will create a and initialize a new API service.
func (*Service) Metrics ¶ added in v1.6.2
func (s *Service) Metrics() []prometheus.Collector
func (*Service) MountDebug ¶ added in v1.6.2
func (*Service) MountTechnicalDebug ¶ added in v1.6.2
func (s *Service) MountTechnicalDebug()
func (*Service) MustRegisterMetrics ¶ added in v1.6.2
func (s *Service) MustRegisterMetrics(cs ...prometheus.Collector)
func (*Service) SetP2P ¶ added in v1.6.2
func (s *Service) SetP2P(p2p p2p.DebugService)
func (*Service) SetSwarmAddress ¶ added in v1.6.2
type UpgradedResponseWriter ¶ added in v0.6.0
type UpgradedResponseWriter interface { http.ResponseWriter http.Pusher http.Hijacker http.Flusher // staticcheck SA1019 CloseNotifier interface is required by gorilla compress handler // nolint:staticcheck http.CloseNotifier }
UpgradedResponseWriter adds more functionality on top of ResponseWriter
Source Files ¶
- accounting.go
- api.go
- balances.go
- bytes.go
- bzz.go
- chequebook.go
- chunk.go
- chunk_address.go
- chunk_stream.go
- dirs.go
- feed.go
- logger.go
- metrics.go
- node.go
- p2p.go
- peer.go
- pin.go
- pingpong.go
- postage.go
- pss.go
- router.go
- settlements.go
- soc.go
- status.go
- stewardship.go
- subdomain.go
- tag.go
- tag_debug.go
- topology.go
- transaction.go
- version.go
- wallet.go
- welcome_message.go
Click to show internal directories.
Click to hide internal directories.