storage

package
v0.0.0-...-137a528 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MutualPrefixCheck

func MutualPrefixCheck(prefix, other string) bool

MutualPrefixCheck returns true if either string starts with the other

Types

type BucketEventListener

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

BucketEventListener listens for specific events on a storage bucket

type BucketListenerManager

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

BucketListenerManager manages storage listeners for different buckets

func New

func New() *BucketListenerManager

func (*BucketListenerManager) HandleRequest

HandleRequest processes incoming requests and directs them to the appropriate listener

func (*BucketListenerManager) Listen

Listen handles incoming stream connections for storage events

func (*BucketListenerManager) RegisterNewListener

RegisterNewListener adds a new listener for a given registration request

func (*BucketListenerManager) WorkerCount

func (b *BucketListenerManager) WorkerCount() int

WorkerCount returns the total number of workers across all listeners

type BucketName

type BucketName = string

BucketName uniquely identifies a storage bucket

type BucketRequestHandler

type BucketRequestHandler interface {
	storagepb.StorageListenerServer
	HandleRequest(request *storagepb.ServerMessage) (*storagepb.ClientMessage, error)
	WorkerCount() int
}

type WorkerConnection

WorkerConnection handles communication between storage and worker

Jump to

Keyboard shortcuts

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