model

package
v0.0.0-...-828de9f Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const Mapping = `` /* 1892-byte string literal not displayed */

Variables

This section is empty.

Functions

This section is empty.

Types

type OutObject

type OutObject struct {
	ActionsExecuted        string  `json:"actions_executed"`
	BytesReceived          int     `json:"bytes_received"`
	BytesSent              int     `json:"bytes_sent"`
	ChosenCertARN          string  `json:"chosen_cert_arn"`
	Classification         string  `json:"classification"`
	ClassificationReason   string  `json:"classification_reason"`
	ClientIP               string  `json:"client_ip"`
	ClientPort             int     `json:"client_port"`
	DomainName             string  `json:"domain_name"`
	ELB                    string  `json:"elb"`
	ELBStatusCode          int     `json:"elb_status_code"`
	LambdaErrorReason      string  `json:"lambda_error_reason"`
	MatchedRulePriority    int     `json:"matched_rule_priority"`
	RedirectURL            string  `json:"redirect_url"`
	RequestCreationTime    string  `json:"request_creation_time"`
	RequestProcessingTime  float64 `json:"request_processing_time"`
	RequestProto           string  `json:"request_proto"`
	RequestURL             string  `json:"request_url"`
	RequestVerb            string  `json:"request_verb"`
	ResponseProcessingTime float64 `json:"response_processing_time"`
	SSLCipher              string  `json:"ssl_cipher"`
	SSLProtocol            string  `json:"ssl_protocol"`
	TargetGroupARN         string  `json:"target_group_arn"`
	TargetIP               string  `json:"target_ip"`
	TargetPortList         string  `json:"target_port_list"`
	TargetPort             string  `json:"target_port,omitempty"`
	TargetProcessingTime   float64 `json:"target_processing_time"`
	TargetStatusCodeList   string  `json:"target_status_code_list"`
	TargetStatusCode       string  `json:"target_status_code"`
	Timestamp              string  `json:"@timestamp"`
	TraceID                string  `json:"trace_id"`
	Type                   string  `json:"type"`
	UserAgent              string  `json:"user_agent"`
}

func (OutObject) Bytes

func (o OutObject) Bytes() []byte

type S3Object

type S3Object struct {
	Size     uint64
	Name     string
	FullName string
	Day      uint8
	Month    uint8
	Year     uint8
}

type S3Objects

type S3Objects []S3Object

type StatsCounter

type StatsCounter struct {
	*sync.Mutex
	// contains filtered or unexported fields
}

----- Stats Counter ------

func NewStatsCounter

func NewStatsCounter(t time.Time) *StatsCounter

func (*StatsCounter) Avg

func (c *StatsCounter) Avg() float64

func (*StatsCounter) Count

func (c *StatsCounter) Count() uint64

func (*StatsCounter) Increment

func (c *StatsCounter) Increment(n int)

func (*StatsCounter) Rate

func (c *StatsCounter) Rate(div ...time.Duration) float64

func (*StatsCounter) Reset

func (c *StatsCounter) Reset()

func (*StatsCounter) Since

func (c *StatsCounter) Since() time.Time

func (*StatsCounter) Total

func (c *StatsCounter) Total() uint64

type StatsGauge

type StatsGauge struct {
	*sync.Mutex
	// contains filtered or unexported fields
}

----- Stats Gauge ------

func NewStatsGauge

func NewStatsGauge() *StatsGauge

func (*StatsGauge) Decrement

func (g *StatsGauge) Decrement(n int)

func (*StatsGauge) Get

func (g *StatsGauge) Get() int64

func (*StatsGauge) Increment

func (g *StatsGauge) Increment(n int)

func (*StatsGauge) Set

func (g *StatsGauge) Set(n int64)

type StatsManualTimer

type StatsManualTimer struct {
	*sync.Mutex
}

------ Stats Manual Timer (with reset)

type StatsTimer

type StatsTimer struct {
	*sync.Mutex
	// contains filtered or unexported fields
}

----- Stats Timer ------

func NewStatsTimer

func NewStatsTimer(size int) *StatsTimer

func (*StatsTimer) Add

func (s *StatsTimer) Add(t time.Duration)

func (*StatsTimer) Avg

func (s *StatsTimer) Avg() time.Duration

func (*StatsTimer) Max

func (s *StatsTimer) Max() time.Duration

Jump to

Keyboard shortcuts

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