postgresql

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: MIT Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DuplicationError

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

func NewDuplicationError

func NewDuplicationError(msg string) *DuplicationError

func (*DuplicationError) Duplication

func (de *DuplicationError) Duplication()

func (*DuplicationError) Error

func (de *DuplicationError) Error() string

type Store

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

func NewStore

func NewStore(connStr string, wt time.Duration, rt time.Duration) (*Store, error)

func (*Store) AlterEventsTable added in v1.0.4

func (s *Store) AlterEventsTable() error

func (*Store) AlterKeysTable added in v1.0.0

func (s *Store) AlterKeysTable() error

func (*Store) CreateEventsTable added in v0.0.9

func (s *Store) CreateEventsTable() error

func (*Store) CreateKey

func (s *Store) CreateKey(rk *key.RequestKey) (*key.ResponseKey, error)

func (*Store) CreateKeysTable

func (s *Store) CreateKeysTable() error

func (*Store) CreateProviderSetting added in v1.0.0

func (s *Store) CreateProviderSetting(setting *provider.Setting) (*provider.Setting, error)

func (*Store) CreateProviderSettingsTable added in v1.0.0

func (s *Store) CreateProviderSettingsTable() error

func (*Store) DeleteKey

func (s *Store) DeleteKey(id string) error

func (*Store) DropEventsTable added in v0.0.9

func (s *Store) DropEventsTable() error

func (*Store) DropKeysTable

func (s *Store) DropKeysTable() error

func (*Store) DropProviderSettingsTable added in v1.0.0

func (s *Store) DropProviderSettingsTable() error

func (*Store) GetAllKeys

func (s *Store) GetAllKeys() ([]*key.ResponseKey, error)

func (*Store) GetAllProviderSettings added in v1.0.0

func (s *Store) GetAllProviderSettings() ([]*provider.Setting, error)

func (*Store) GetEventDataPoints added in v0.0.9

func (s *Store) GetEventDataPoints(start, end, increment int64, tags, keyIds []string, filters []string) ([]*event.DataPoint, error)

func (*Store) GetKey added in v0.0.7

func (s *Store) GetKey(keyId string) (*key.ResponseKey, error)

func (*Store) GetKeysByTag

func (s *Store) GetKeysByTag(tag string) ([]*key.ResponseKey, error)

func (*Store) GetLatencyPercentiles added in v0.0.9

func (s *Store) GetLatencyPercentiles(start, end int64, tags, keyIds []string) ([]float64, error)

func (*Store) GetProviderSetting added in v1.0.0

func (s *Store) GetProviderSetting(id string) (*provider.Setting, error)

func (*Store) GetUpdatedKeys

func (s *Store) GetUpdatedKeys(updatedAt int64) ([]*key.ResponseKey, error)

func (*Store) GetUpdatedProviderSettings added in v1.0.0

func (s *Store) GetUpdatedProviderSettings(updatedAt int64) ([]*provider.Setting, error)

func (*Store) InsertEvent added in v0.0.9

func (s *Store) InsertEvent(e *event.Event) error

func (*Store) UpdateKey

func (s *Store) UpdateKey(id string, uk *key.UpdateKey) (*key.ResponseKey, error)

func (*Store) UpdateProviderSetting added in v1.0.0

func (s *Store) UpdateProviderSetting(id string, setting *provider.Setting) (*provider.Setting, error)

Jump to

Keyboard shortcuts

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