services

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2020 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Overview

Package services manages "service discovery". It is currently implemented as a set of default singletons. Calling one of the `Get` functions returns a lazily-created instance of a service. All getters are concurrency-safe and can be used from several goroutines.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDBConf

func GetDBConf() (dbconf.ConfigurationDB, error)

GetDBConf returns the main instance to the TSDB service. It is instantiated lazily. Safe for concurrent use.

func GetSessionManager added in v0.9.0

func GetSessionManager() (session.Manager, error)

GetSessionManager returns the main session manager. It is instantiated lazily. Safe for concurrent use.

func GetTSDB

func GetTSDB() (tsdb.TSDB, error)

GetTSDB returns the main instance to the TSDB service. It is instantiated lazily. Safe for concurrent use.

Types

This section is empty.

Jump to

Keyboard shortcuts

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