goser

package
v0.0.0-...-8923230 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2016 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLog

func NewLog(record *Log)

Types

type CacheStatus

type CacheStatus int32
const (
	CacheStatus_CACHESTATUS_UNKNOWN CacheStatus = 0
	CacheStatus_MISS                CacheStatus = 1
	CacheStatus_EXPIRED             CacheStatus = 2
	CacheStatus_HIT                 CacheStatus = 3
)

type Country

type Country int32
const (
	Country_UNKNOWN Country = 0
	Country_US      Country = 238
)

type HTTP

type HTTP struct {
	Protocol         HTTP_Protocol `json:"protocol"`
	Status           uint32        `json:"status"`
	HostStatus       uint32        `json:"hostStatus"`
	UpStatus         uint32        `json:"upStatus"`
	Method           HTTP_Method   `json:"method"`
	ContentType      string        `json:"contentType"`
	UserAgent        string        `json:"userAgent"`
	Referer          string        `json:"referer"`
	RequestURI       string        `json:"requestURI"`
	XXX_unrecognized []byte        `json:"-"`
}

type HTTP_Method

type HTTP_Method int32
const (
	HTTP_METHOD_UNKNOWN HTTP_Method = 0
	HTTP_GET            HTTP_Method = 1
	HTTP_POST           HTTP_Method = 2
	HTTP_DELETE         HTTP_Method = 3
	HTTP_PUT            HTTP_Method = 4
	HTTP_HEAD           HTTP_Method = 5
	HTTP_PURGE          HTTP_Method = 6
	HTTP_OPTIONS        HTTP_Method = 7
	HTTP_PROPFIND       HTTP_Method = 8
	HTTP_MKCOL          HTTP_Method = 9
	HTTP_PATCH          HTTP_Method = 10
)

type HTTP_Protocol

type HTTP_Protocol int32
const (
	HTTP_HTTP_PROTOCOL_UNKNOWN HTTP_Protocol = 0
	HTTP_HTTP10                HTTP_Protocol = 1
	HTTP_HTTP11                HTTP_Protocol = 2
)

type IP

type IP net.IP

func (IP) MarshalJSON

func (ip IP) MarshalJSON() ([]byte, error)

func (IP) MarshalJSONBuf

func (ip IP) MarshalJSONBuf(buf fflib.EncodingBuffer) error

func (*IP) UnmarshalJSON

func (ip *IP) UnmarshalJSON(data []byte) error

type Log

type Log struct {
	Timestamp        int64       `json:"timestamp"`
	ZoneId           uint32      `json:"zoneId"`
	ZonePlan         ZonePlan    `json:"zonePlan"`
	Http             HTTP        `json:"http"`
	Origin           Origin      `json:"origin"`
	Country          Country     `json:"country"`
	CacheStatus      CacheStatus `json:"cacheStatus"`
	ServerIp         IP          `json:"serverIp"`
	ServerName       string      `json:"serverName"`
	RemoteIp         IP          `json:"remoteIp"`
	BytesDlv         uint64      `json:"bytesDlv"`
	RayId            string      `json:"rayId"`
	XXX_unrecognized []byte      `json:"-"`
}

type Origin

type Origin struct {
	Ip       IP              `json:"ip"`
	Port     uint32          `json:"port"`
	Hostname string          `json:"hostname"`
	Protocol Origin_Protocol `json:"protocol"`
}

type Origin_Protocol

type Origin_Protocol int32
const (
	Origin_ORIGIN_PROTOCOL_UNKNOWN Origin_Protocol = 0
	Origin_HTTP                    Origin_Protocol = 1
	Origin_HTTPS                   Origin_Protocol = 2
)

type ZonePlan

type ZonePlan int32
const (
	ZonePlan_ZONEPLAN_UNKNOWN ZonePlan = 0
	ZonePlan_FREE             ZonePlan = 1
	ZonePlan_PRO              ZonePlan = 2
	ZonePlan_BIZ              ZonePlan = 3
	ZonePlan_ENT              ZonePlan = 4
)

Jump to

Keyboard shortcuts

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