resource

package
v0.0.0-...-34e0b2d Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(opts ...optResourceInit)

Init initializes the singleton of resources. Should be call when streaming node startup.

func OptBufferManager

func OptBufferManager(wbMgr writebuffer.BufferManager) optResourceInit

OptBufferManager provides the write buffer manager to the resource.

func OptChunkManager

func OptChunkManager(chunkManager storage.ChunkManager) optResourceInit

OptChunkManager provides the chunk manager to the resource.

func OptDataCoordClient

func OptDataCoordClient(dataCoordClient types.DataCoordClient) optResourceInit

OptDataCoordClient provides the data coordinator client to the resource.

func OptETCD

func OptETCD(etcd *clientv3.Client) optResourceInit

OptETCD provides the etcd client to the resource.

func OptFlusher

func OptFlusher(flusher flusher.Flusher) optResourceInit

OptFlusher provides the flusher to the resource.

func OptRootCoordClient

func OptRootCoordClient(rootCoordClient types.RootCoordClient) optResourceInit

OptRootCoordClient provides the root coordinator client to the resource.

func OptStreamingNodeCatalog

func OptStreamingNodeCatalog(catalog metastore.StreamingNodeCataLog) optResourceInit

OptStreamingNodeCatalog provides the streaming node catalog to the resource.

func OptSyncManager

func OptSyncManager(syncMgr syncmgr.SyncManager) optResourceInit

OptSyncManager provides the sync manager to the resource.

func Resource

func Resource() *resourceImpl

Resource access the underlying singleton of resources.

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