resource

package
v0.10.3-0...-bec5499 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

func Apply(opts ...optResourceInit)

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

func Done

func Done()

Done finish all initialization of resources.

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 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