auxdbbackend

package
v0.0.0-...-f0491b5 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuxWebappBackend

type AuxWebappBackend struct {
	as.Backend
	// contains filtered or unexported fields
}

AuxWebappBackend looks up website information (cms_info data type) in the aux-db service.

A lookup spawns a number of requests for each resource that might be involved, but we would like to group requests to aux-db such as to minimize their number (and parallelize them). So we generate a list of resource IDs to lookup, along with an associated callback that will modify the original resource. Then we group them by shard, fan out the requests in parallel, and invoke the callbacks with the results.

func Wrap

func (*AuxWebappBackend) NewTransaction

func (b *AuxWebappBackend) NewTransaction() (as.TX, error)

Jump to

Keyboard shortcuts

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