Documentation ¶
Overview ¶
Package common does the heavy lifting for proxima.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
Database represents a single proxima configuration.
type Influx ¶
type Influx struct {
// contains filtered or unexported fields
}
Influx represents a single influx backend.
type InfluxList ¶
type InfluxList struct {
// contains filtered or unexported fields
}
InfluxList represents a group of influx backends. nil represents the group of zero influx backends.
func NewInfluxList ¶
func NewInfluxList(influxes config.InfluxList) (*InfluxList, error)
NewInfluxList returns a new instancce. If the length of influxes is 0, NewInfluxList returns nil.
func (*InfluxList) Close ¶
func (l *InfluxList) Close() error
Close frees any resources associated with this instance.
type Proxima ¶
type Proxima struct {
// contains filtered or unexported fields
}
Proxima represents all the configurations of a proxima application. A Proxima instance does the heavy lifting for the proxima application.
func (*Proxima) ByName ¶
ByName returns the configuration with given name or nil if no such configuration exists.
type Scotty ¶
type Scotty struct {
// contains filtered or unexported fields
}
Scotty represents a single scotty server.
type ScottyList ¶
type ScottyList struct {
// contains filtered or unexported fields
}
ScottyList represents a group of scotty servers. Unlike ScottyPartials, each Scotty has the same data only one scotty has to respond to each query. nil represents the group of zero scotty servers.
func NewScottyList ¶
func NewScottyList(scotties config.ScottyList) (*ScottyList, error)
NewScottyList returns a new instancce. If the length of scotties is 0, NewScottyList returns nil.
func (*ScottyList) Close ¶
func (l *ScottyList) Close() error
Close frees any resources associated with this instance.
type ScottyPartials ¶
type ScottyPartials struct {
// contains filtered or unexported fields
}
ScottyPartials represents a list of scotties where all the scotties together represent the data. All scotties must respond to each query.
func NewScottyPartials ¶
func NewScottyPartials(scotties config.ScottyList) (*ScottyPartials, error)
func (*ScottyPartials) Close ¶
func (l *ScottyPartials) Close() error