sqlite

package
v0.0.0-...-ad35ae5 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2018 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Overview

Package sqlite interface for sqlite metric data storage

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

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

func (Storage) DeleteData

func (r Storage) DeleteData(tenant string, id string, end int64, start int64) error

DeleteData handle delete data fron db

func (Storage) DeleteTags

func (r Storage) DeleteTags(tenant string, id string, tags []string) error

DeleteTags handle delete tags fron db

func (Storage) GetItemList

func (r Storage) GetItemList(tenant string, tags map[string]string) ([]storage.Item, error)

func (Storage) GetRawData

func (r Storage) GetRawData(tenant string, id string, end int64, start int64, limit int64, order string) ([]storage.DataItem, error)

func (Storage) GetStatData

func (r Storage) GetStatData(tenant string, id string, end int64, start int64, limit int64, order string, bucketDuration int64) ([]storage.StatItem, error)

func (Storage) GetTenants

func (r Storage) GetTenants() ([]storage.Tenant, error)

func (Storage) Help

func (r Storage) Help() string

Help return a human readable storage help message

func (Storage) IDExist

func (r Storage) IDExist(tenant string, id string) bool

func (Storage) Name

func (r Storage) Name() string

Name return a human readable storage name

func (*Storage) Open

func (r *Storage) Open(options url.Values)

Open storage

func (Storage) PostRawData

func (r Storage) PostRawData(tenant string, id string, t int64, v float64) error

PostRawData handle posting data to db

func (Storage) PutTags

func (r Storage) PutTags(tenant string, id string, tags map[string]string) error

PutTags handle posting tags to db

Jump to

Keyboard shortcuts

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