handlers

package
v0.9.13 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: MIT Imports: 39 Imported by: 0

Documentation

Index

Constants

View Source
const MaxTxFiltersPerListener = 64

MaxTxFiltersPerListener bounds the number of compiled CEL programs a single subscription can hold, preventing memory exhaustion via repeated UpdateSubscription calls.

Variables

View Source
var ErrSubscriptionNotFound = errors.New("subscription not found")

ErrSubscriptionNotFound is returned by broker operations targeting a subscription id that has no live listener.

View Source
var ErrTxFiltersLimitExceeded = fmt.Errorf(
	"tx filters per subscription limit (%d) exceeded", MaxTxFiltersPerListener,
)

ErrTxFiltersLimitExceeded is returned when an add or overwrite would push the listener's tx filter count above MaxTxFiltersPerListener.

Functions

func NewAdminHandler

func NewAdminHandler(
	adminService application.AdminService,
	indexerService application.IndexerService,
	macaroonSvc *macaroons.Service,
	macaroonDatadir, noteUriPrefix string,
) arkv1.AdminServiceServer

func NewAppServiceHandler added in v0.8.0

func NewAppServiceHandler(version string, service application.Service, heartbeat int64) service

func NewHealthHandler

func NewHealthHandler() grpchealth.HealthServer

func NewIndexerService

func NewIndexerService(
	indexerSvc application.IndexerService, eventsCh <-chan application.TransactionEvent,
	subscriptionTimeoutDuration time.Duration, heartbeat int64,
) arkv1.IndexerServiceServer

func NewSignerManagerHandler added in v0.7.1

func NewSignerManagerHandler(
	walletSvc ports.WalletService, onLoadSigner func(addr string) error,
) arkv1.SignerManagerServiceServer

func NewWalletHandler

func NewWalletHandler(walletService ports.WalletService) arkv1.WalletServiceServer

func NewWalletInitializerHandler

func NewWalletInitializerHandler(
	walletService ports.WalletService, onInit, onUnlock func(string), onReady func(),
) arkv1.WalletInitializerServiceServer

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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