Documentation ¶
Index ¶
- Constants
- Variables
- func Dashboard(w http.ResponseWriter, r *http.Request)
- func GenerateSessionId() string
- func GenerateSessionTimeFrame(sessionDuration uint) (time.Duration, time.Duration)
- func GetAggregationConfigs(repo configs.Repository, parsingConfig *configs.ParsingConfig) (*map[string]configs.AggregationConfig, error)
- func GetRouter(context ServerContext) http.Handler
- func JsonToWriter(w io.Writer, v interface{}) error
- func Launch(s ServerContext, w http.ResponseWriter, r *http.Request)
- func ParsingConfigs(s ServerContext, w http.ResponseWriter, r *http.Request)
- func ReadParsingConfig(s ServerContext, w http.ResponseWriter, r *http.Request)
- func RegisterFetcherLoader(name string, f FetcherLoader) error
- func Tasks(s ServerContext, w http.ResponseWriter, r *http.Request)
- type Client
- type Context
- type FetcherLoader
- type HostFetcher
- type Metrics
- type PredefineFetcher
- type PredefineFetcherConfig
- type ServerContext
- type SimpleFetcher
- type SimpleFetcherConfig
- type Stats
Constants ¶
View Source
const ( CONFIGS_PARSING_PATH = "/etc/combaine/parsing/" CONFIGS_AGGREGATION_PATH = "/etc/combaine/aggregate" COMBAINER_PATH = "/etc/combaine/combaine.yaml" )
Variables ¶
View Source
var ( ErrHandlerTimeout = errors.New("Timeout") ErrZeroPeriod = errors.New("MINIMUM_PERIOD must be positive") )
View Source
var GlobalMetrics = Metrics{ // contains filtered or unexported fields }
Functions ¶
func GetAggregationConfigs ¶
func GetAggregationConfigs(repo configs.Repository, parsingConfig *configs.ParsingConfig) (*map[string]configs.AggregationConfig, error)
func GetRouter ¶
func GetRouter(context ServerContext) http.Handler
func JsonToWriter ¶
func Launch ¶
func Launch(s ServerContext, w http.ResponseWriter, r *http.Request)
func ParsingConfigs ¶
func ParsingConfigs(s ServerContext, w http.ResponseWriter, r *http.Request)
func ReadParsingConfig ¶
func ReadParsingConfig(s ServerContext, w http.ResponseWriter, r *http.Request)
func RegisterFetcherLoader ¶
func RegisterFetcherLoader(name string, f FetcherLoader) error
func Tasks ¶
func Tasks(s ServerContext, w http.ResponseWriter, r *http.Request)
Types ¶
type Client ¶
type Client struct { *Context *Stats Id string Repository configs.Repository Log *logrus.Entry // contains filtered or unexported fields }
func (*Client) UpdateSessionParams ¶
type FetcherLoader ¶
type FetcherLoader func(*Context, map[string]interface{}) (HostFetcher, error)
type HostFetcher ¶
func LoadHostFetcher ¶
func LoadHostFetcher(context *Context, config configs.PluginConfig) (HostFetcher, error)
type Metrics ¶
func (*Metrics) GetRegistries ¶
func (*Metrics) GetRegistry ¶
func (*Metrics) RegisterRegistry ¶
func (*Metrics) UnregisterRegistry ¶
type PredefineFetcher ¶
type PredefineFetcher struct { PredefineFetcherConfig // contains filtered or unexported fields }
type PredefineFetcherConfig ¶
type ServerContext ¶
type ServerContext interface { GetContext() *Context GetRepository() configs.Repository }
type SimpleFetcher ¶
type SimpleFetcher struct { SimpleFetcherConfig *Context }
type SimpleFetcherConfig ¶
type Stats ¶
type Stats struct { Registry metrics.Registry // contains filtered or unexported fields }
func (*Stats) AddFailedAggregate ¶
func (s *Stats) AddFailedAggregate()
func (*Stats) AddFailedParsing ¶
func (s *Stats) AddFailedParsing()
func (*Stats) AddSuccessAggregate ¶
func (s *Stats) AddSuccessAggregate()
func (*Stats) AddSuccessParsing ¶
func (s *Stats) AddSuccessParsing()
Click to show internal directories.
Click to hide internal directories.