Documentation ¶
Overview ¶
Package api provides the functionality of the aurora client-facing HTTP API.
Copyright 2021 The Swarm Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
Index ¶
Constants ¶
View Source
const ( AuroraPinHeader = "Aurora-Pin" AuroraTagHeader = "Aurora-Tag" AuroraEncryptHeader = "Aurora-Encrypt" AuroraIndexDocumentHeader = "Aurora-Index-Document" AuroraErrorDocumentHeader = "Aurora-Error-Document" AuroraFeedIndexHeader = "Aurora-Feed-Index" AuroraFeedIndexNextHeader = "Aurora-Feed-Index-Next" AuroraCollectionHeader = "Aurora-Collection" AuroraCollectionNameHeader = "Aurora-Collection-Name" )
View Source
const (
StringTrue = "true"
)
View Source
const (
// TargetsRecoveryHeader defines the Header for Recovery targets in Global Pinning
TargetsRecoveryHeader = "aurora-recovery-targets"
)
Variables ¶
View Source
var ( ErrNotFound = errors.New("manifest: not found") ErrServerError = errors.New("manifest: ServerError") )
View Source
var BufferSizeMul int
Functions ¶
func UnescapeUnicode ¶ added in v1.1.0
UnescapeUnicode convert the raw Unicode encoding to character
Types ¶
type AllRequest ¶ added in v1.2.1
type AllResponse ¶ added in v1.2.1
type Service ¶
Service is the API service interface.
func New ¶
func New(storer storage.Storer, resolver resolver.Interface, addr boson.Address, chunkInfo chunkinfo.Interface, traversalService traversal.Traverser, pinning pinning.Interface, auth authenticator, logger logging.Logger, tracer *tracing.Tracer, traffic traffic.ApiInterface, commonChain chain.Common, oracleChain chain.Resolver, netRelay netrelay.NetRelay, multicast multicast.GroupInterface, o Options) Service
New will create a and initialize a new API service.
type TransactionResponse ¶ added in v1.2.2
type UpgradedResponseWriter ¶ added in v1.1.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 // skipcq: SCC-SA1019 }
UpgradedResponseWriter adds more functionality on top of ResponseWriter
Click to show internal directories.
Click to hide internal directories.