Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResourceType ¶
type ResourceType string
ResourceType Resource type as it was perceived by the rendering engine.
const ( ResourceTypeNotSet ResourceType = "" ResourceTypeDocument ResourceType = "Document" ResourceTypeStylesheet ResourceType = "Stylesheet" ResourceTypeImage ResourceType = "Image" ResourceTypeMedia ResourceType = "Media" ResourceTypeFont ResourceType = "Font" ResourceTypeScript ResourceType = "Script" ResourceTypeTextTrack ResourceType = "TextTrack" ResourceTypeXHR ResourceType = "XHR" ResourceTypeFetch ResourceType = "Fetch" ResourceTypeEventSource ResourceType = "EventSource" ResourceTypeWebSocket ResourceType = "WebSocket" ResourceTypeManifest ResourceType = "Manifest" ResourceTypeSignedExchange ResourceType = "SignedExchange" ResourceTypePing ResourceType = "Ping" ResourceTypeCSPViolationReport ResourceType = "CSPViolationReport" ResourceTypeOther ResourceType = "Other" )
ResourceType as enums.
func (ResourceType) String ¶
func (e ResourceType) String() string
func (ResourceType) Valid ¶
func (e ResourceType) Valid() bool
type TimeSinceEpoch ¶
type TimeSinceEpoch float64
TimeSinceEpoch UTC time in seconds, counted from January 1, 1970.
func (TimeSinceEpoch) MarshalJSON ¶
func (t TimeSinceEpoch) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler. Encodes to null if t is zero.
func (TimeSinceEpoch) String ¶
func (t TimeSinceEpoch) String() string
String calls (time.Time).String().
func (TimeSinceEpoch) Time ¶
func (t TimeSinceEpoch) Time() time.Time
Time parses the Unix time with millisecond accuracy.
func (*TimeSinceEpoch) UnmarshalJSON ¶
func (t *TimeSinceEpoch) UnmarshalJSON(data []byte) error
UnmarshalJSON implements json.Unmarshaler.
Click to show internal directories.
Click to hide internal directories.