retriever

package
v0.2.1-test-2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2023 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultQuerySPParallelPerNode defines the max parallel for retrieving request
	DefaultQuerySPParallelPerNode int64 = 10240
)
View Source
const (
	DefaultRetrieverStatisticsInterval = 60
)

Variables

View Source
var (
	ErrDanglingPointer = gfsperrors.Register(RetrieveModularName, http.StatusInternalServerError, 90001, "OoooH... request lost, try again later")
	ErrExceedRequest   = gfsperrors.Register(RetrieveModularName, http.StatusServiceUnavailable, 90002, "request exceed")
	ErrNoRecord        = gfsperrors.Register(RetrieveModularName, http.StatusNotFound, 90003, "no uploading record")
	ErrGfSpDB          = gfsperrors.Register(RetrieveModularName, http.StatusInternalServerError, 95202, "server slipped away, try again later")
)
View Source
var (
	RetrieveModularName        = strings.ToLower("Retriever")
	RetrieveModularDescription = "Retrieves sp metadata and info."
)

Functions

func DefaultRetrieverOptions

func DefaultRetrieverOptions(receiver *RetrieveModular, cfg *gfspconfig.GfSpConfig) error

func NewRetrieveModular

func NewRetrieveModular(app *gfspapp.GfSpBaseApp, cfg *gfspconfig.GfSpConfig) (coremodule.Modular, error)

Types

type RetrieveModular

type RetrieveModular struct {
	// contains filtered or unexported fields
}

func (*RetrieveModular) GfSpGetBucketReadQuota

func (*RetrieveModular) Name

func (r *RetrieveModular) Name() string

func (*RetrieveModular) ReleaseResource

func (r *RetrieveModular) ReleaseResource(
	ctx context.Context,
	span rcmgr.ResourceScopeSpan)

func (*RetrieveModular) ReserveResource

func (r *RetrieveModular) ReserveResource(
	ctx context.Context,
	state *rcmgr.ScopeStat) (
	rcmgr.ResourceScopeSpan, error)

func (*RetrieveModular) Start

func (r *RetrieveModular) Start(ctx context.Context) error

func (*RetrieveModular) Stop

func (r *RetrieveModular) Stop(ctx context.Context) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL