metadata

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CursorUpdater

type CursorUpdater interface {
	GetCursor() *envelopes.Cursor
	AddSubscriber(clientID string, updateChan chan struct{})
	RemoveSubscriber(clientID string)
	Stop()
}

func NewCursorUpdater

func NewCursorUpdater(ctx context.Context, log *zap.Logger, store *sql.DB) CursorUpdater

type DBBasedCursorUpdater

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

func (*DBBasedCursorUpdater) AddSubscriber

func (cu *DBBasedCursorUpdater) AddSubscriber(clientID string, updateChan chan struct{})

func (*DBBasedCursorUpdater) GetCursor

func (cu *DBBasedCursorUpdater) GetCursor() *envelopes.Cursor

func (*DBBasedCursorUpdater) RemoveSubscriber

func (cu *DBBasedCursorUpdater) RemoveSubscriber(clientID string)

func (*DBBasedCursorUpdater) Stop

func (cu *DBBasedCursorUpdater) Stop()

type Service

type Service struct {
	metadata_api.UnimplementedMetadataApiServer
	// contains filtered or unexported fields
}

func NewMetadataApiService

func NewMetadataApiService(
	ctx context.Context,
	log *zap.Logger,
	updater CursorUpdater,
) (*Service, error)

Jump to

Keyboard shortcuts

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