Documentation ¶
Index ¶
- func ClientTLSConfig(flagOpts TLS) (config *tls.Config, err error)
- func Config(cmd *cobra.Command) (*viper.Viper, error)
- func Graph(ctx context.Context, cfg *viper.Viper) (syncd map[string]graph.Graph, closer func(context.Context) error, err error)
- func Logger(writer io.Writer, cfg *viper.Viper) (*zap.Logger, error)
- func OverridePostgresGraphFactory(factory PostgresGraphFactory)
- func ResetPostgresGraphFactory()
- func ServerTLSConfig(cfg *viper.Viper) (config *tls.Config, err error)
- type Error
- type GraphConfig
- type GraphModel
- type MetricServerContext
- type Model
- type ModelMap
- type PostgresGraphFactory
- type Probes
- type StringValue
- type TLS
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OverridePostgresGraphFactory ¶
func OverridePostgresGraphFactory(factory PostgresGraphFactory)
func ResetPostgresGraphFactory ¶
func ResetPostgresGraphFactory()
Types ¶
type GraphConfig ¶
type GraphConfig struct { Source struct { Postgres *struct { Connection StringValue SyncTable struct { Name string } SequenceTable struct { Name string } } } Models map[string]GraphModel }
func (*GraphConfig) PostgreSQL ¶
func (*GraphConfig) Validate ¶
func (c *GraphConfig) Validate() error
type GraphModel ¶
type GraphModel struct { Table string Key string Version string Sequence string ChildKey string Priority string IsSet bool Children map[string]GraphModel }
func (*GraphModel) GenerateModel ¶
func (m *GraphModel) GenerateModel(name string, model *graph.Model) error
type MetricServerContext ¶
type MetricServerContext struct {
// contains filtered or unexported fields
}
func (*MetricServerContext) Error ¶
func (msc *MetricServerContext) Error() error
func (*MetricServerContext) Stop ¶
func (msc *MetricServerContext) Stop()
type PostgresGraphFactory ¶
type Probes ¶
type Probes struct { Registry *prometheus.Registry // contains filtered or unexported fields }
func (*Probes) Serve ¶
func (mc *Probes) Serve(addr string) *MetricServerContext
type StringValue ¶
func (*StringValue) GetValue ¶
func (sv *StringValue) GetValue() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.