server

package
v0.0.0-...-c3b4a3f Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(cfg flags.API, awscfg aws.Config, e *echo.Echo) error

Types

type Asset

type Asset struct {
	// contains filtered or unexported fields
}

func NewAsset

func NewAsset(cfg flags.API, awscfg aws.Config) *Asset

func (*Asset) Analytics

func (gha *Asset) Analytics(c echo.Context) error

type HitRecord

type HitRecord struct {
	CloudfrontForwardedProto          string `header:"cloudfront-forwarded-proto" json:"cf_forwarded_proto,omitempty"`
	CloudfrontIsAndroidViewer         string `header:"cloudfront-is-android-viewer" json:"cf_is_android_vwr,omitempty"`
	CloudfrontIsDesktopViewer         string `header:"cloudfront-is-desktop-viewer" json:"cf_is_desktop_vwr,omitempty"`
	CloudfrontIsIosViewer             string `header:"cloudfront-is-ios-viewer" json:"cf_is_ios_vwr,omitempty"`
	CloudfrontIsMobileViewer          string `header:"cloudfront-is-mobile-viewer" json:"cf_is_mobile_vwr,omitempty"`
	CloudfrontIsSmarttvViewer         string `header:"cloudfront-is-smarttv-viewer" json:"cf_is_smarttv_vwr,omitempty"`
	CloudfrontIsTabletViewer          string `header:"cloudfront-is-tablet-viewer" json:"cf_is_tablet_vwr,omitempty"`
	CloudfrontViewerAddress           string `header:"cloudfront-viewer-address" json:"cf_vwr_address,omitempty"`
	CloudfrontViewerAsn               string `header:"cloudfront-viewer-asn" json:"cf_vwr_asn,omitempty"`
	CloudfrontViewerCity              string `header:"cloudfront-viewer-city" json:"cf_vwr_city,omitempty"`
	CloudfrontViewerCountry           string `header:"cloudfront-viewer-country" json:"cf_vwr_country,omitempty"`
	CloudfrontViewerCountryName       string `header:"cloudfront-viewer-country-name" json:"cf_vwr_country_name,omitempty"`
	CloudfrontViewerCountryRegion     string `header:"cloudfront-viewer-country-region" json:"cf_vwr_country_region,omitempty"`
	CloudfrontViewerCountryRegionName string `header:"cloudfront-viewer-country-region-name" json:"cf_vwr_country_region_name,omitempty"`
	CloudfrontViewerHttpVersion       string `header:"cloudfront-viewer-http-version" json:"cf_vwr_http_version,omitempty"`
	CloudfrontViewerJa3Fingerprint    string `header:"cloudfront-viewer-ja3-fingerprint" json:"cf_vwr_ja3_fingerprint,omitempty"`
	CloudfrontViewerLatitude          string `header:"cloudfront-viewer-latitude" json:"cf_vwr_latitude,omitempty"`
	CloudfrontViewerLongitude         string `header:"cloudfront-viewer-longitude" json:"cf_vwr_longitude,omitempty"`
	CloudfrontViewerPostalCode        string `header:"cloudfront-viewer-postal-code" json:"cf_vwr_postal_code,omitempty"`
	CloudfrontViewerTimeZone          string `header:"cloudfront-viewer-time-zone" json:"cf_vwr_time_zone,omitempty"`
	CloudfrontViewerTls               string `header:"cloudfront-viewer-tls" json:"cf_vwr_tls,omitempty"`
	Host                              string `header:"host" json:"host,omitempty"`
	Referer                           string `header:"referer" json:"referer,omitempty"`
	UserAgent                         string `header:"user-agent" json:"user_agent,omitempty"`
	Via                               string `header:"via" json:"via,omitempty"`
	XAmzCfId                          string `header:"x-amz-cf-id" json:"x_amz_cf_id,omitempty"`
	XAmznTraceId                      string `header:"x-amzn-trace-id" json:"x_amzn_trace_id,omitempty"`
	TS                                string `header:"-" json:"ts,omitempty"`
	TSEpochMillis                     int64  `header:"-" json:"ts_epoch_millis,omitempty"`
	UTMId                             string `header:"-" json:"utm_id,omitempty"`
	UTMSource                         string `header:"-" json:"utm_source,omitempty"`
	UTMMedium                         string `header:"-" json:"utm_medium,omitempty"`
	UTMCampaign                       string `header:"-" json:"utm_campaign,omitempty"`
	UTMTerm                           string `header:"-" json:"utm_term,omitempty"`
	UTMContent                        string `header:"-" json:"utm_content,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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