model

package
v0.0.0-...-ecc870c Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MatchResult

type MatchResult struct {
	Templates      []*Template `json:"templates"`
	Forwarded      *string     `json:"forwarded"`
	TimeParsingNs  float64     `json:"timeParsingNS"`
	TimeMatchingNs float64     `json:"timeMatchingNS"`
}

type Service

type Service struct {
	Matcher       *rmap.RulesMap
	TemplatesByID map[string]*Template
	Stats         *statistics.ServiceSync

	ID                string      `json:"id"`
	TemplatesEnabled  []*Template `json:"templatesEnabled"`
	TemplatesDisabled []*Template `json:"templatesDisabled"`
	ProxyURL          string      `json:"proxyURL"`
	ForwardURL        string      `json:"forwardURL"`
	ForwardReduced    bool        `json:"forwardReduced"`
	Enabled           bool        `json:"enabled"`
}

type ServiceStatistics

type ServiceStatistics struct {
	BlockedRequests       int `json:"blockedRequests"`
	ForwardedRequests     int `json:"forwardedRequests"`
	ReceivedBytes         int `json:"receivedBytes"`
	SentBytes             int `json:"sentBytes"`
	HighestProcessingTime int `json:"highestProcessingTime"`
	AverageProcessingTime int `json:"averageProcessingTime"`
	HighestResponseTime   int `json:"highestResponseTime"`
	AverageResponseTime   int `json:"averageResponseTime"`
}

type Template

type Template struct {
	Service *Service
	Stats   *statistics.TemplateSync

	ID      string   `json:"id"`
	Tags    []string `json:"tags"`
	Source  string   `json:"source"`
	Enabled bool     `json:"enabled"`
}

type TemplateStatistics

type TemplateStatistics struct {
	Matches               int       `json:"matches"`
	LastMatch             time.Time `json:"lastMatch"`
	HighestProcessingTime int       `json:"highestProcessingTime"`
	AverageProcessingTime int       `json:"averageProcessingTime"`
	HighestResponseTime   int       `json:"highestResponseTime"`
	AverageResponseTime   int       `json:"averageResponseTime"`
}

Jump to

Keyboard shortcuts

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