service

package
v0.0.0-...-a14c69b Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2022 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LabelService

type LabelService struct {
	ServiceData
	GoCache *cache.Cache
}

func (*LabelService) GetLabels

func (ls *LabelService) GetLabels() string

func (*LabelService) LabelValsByKey

func (ls *LabelService) LabelValsByKey(key string) string

type PushService

type PushService struct {
	ServiceData
	GoCache *cache.Cache
	TSCh    chan *model.TableTimeSeries
	SPCh    chan *model.TableSample
	DBTimer time.Duration
	DBBulk  int
}

func (*PushService) Insert

func (ps *PushService) Insert() error

func (*PushService) PushStream

func (ps *PushService) PushStream(req model.PushRequest) error

this method create new user in the database it doesn't check internally whether all the validation are applied or not

func (*PushService) ReloadFingerprints

func (ps *PushService) ReloadFingerprints() error

this method create new user in the database it doesn't check internally whether all the validation are applied or not

type QueryService

type QueryService struct {
	ServiceData
}

func (*QueryService) GetQuery

func (qs *QueryService) GetQuery() string

this method create new user in the database it doesn't check internally whether all the validation are applied or not

func (*QueryService) QueryRange

func (qs *QueryService) QueryRange(query, start, end string) string

this method create new user in the database it doesn't check internally whether all the validation are applied or not

type QueryStruct

type QueryStruct struct {
	DB       string
	Table    string
	Interval string
	Tag      string
	Metric   string
	Where    string
}

type SeriesService

type SeriesService struct {
	ServiceData
}

func (*SeriesService) GetSeries

func (ss *SeriesService) GetSeries() string

this method create new user in the database it doesn't check internally whether all the validation are applied or not

type ServiceData

type ServiceData struct {
	Session *sqlx.DB
}

Service : here you tell us what Salutation is

Jump to

Keyboard shortcuts

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