Documentation
¶
Index ¶
- Constants
- type Cache
- type CacheID
- type CachedResponse
- type CachedResponseType
- type DataEntry
- type DeleteCacheArgs
- type DeleteCacheReply
- type DeleteEntryArgs
- type DeleteEntryReply
- type Header
- type RequestCacheNamesArgs
- type RequestCacheNamesReply
- type RequestCachedResponseArgs
- type RequestCachedResponseReply
- type RequestEntriesArgs
- type RequestEntriesReply
Constants ¶
const ( CommandCacheStorageDeleteCache = "CacheStorage.deleteCache" CommandCacheStorageDeleteEntry = "CacheStorage.deleteEntry" CommandCacheStorageRequestCacheNames = "CacheStorage.requestCacheNames" CommandCacheStorageRequestCachedResponse = "CacheStorage.requestCachedResponse" CommandCacheStorageRequestEntries = "CacheStorage.requestEntries" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
CacheID CacheID `json:"cacheId"` // An opaque unique id of the cache.
SecurityOrigin string `json:"securityOrigin"` // Security origin of the cache.
CacheName string `json:"cacheName"` // The name of the cache.
}
Cache Cache identifier.
type CachedResponse ¶
type CachedResponse struct {
Body string `json:"body"` // Entry content, base64-encoded.
}
CachedResponse Cached response
type CachedResponseType ¶
type CachedResponseType string
CachedResponseType type of HTTP response cached
const ( CachedResponseTypeNotSet CachedResponseType = "" CachedResponseTypeBasic CachedResponseType = "basic" CachedResponseTypeCors CachedResponseType = "cors" CachedResponseTypeDefault CachedResponseType = "default" CachedResponseTypeError CachedResponseType = "error" CachedResponseTypeOpaqueResponse CachedResponseType = "opaqueResponse" CachedResponseTypeOpaqueRedirect CachedResponseType = "opaqueRedirect" )
CachedResponseType as enums.
func (CachedResponseType) String ¶
func (e CachedResponseType) String() string
func (CachedResponseType) Valid ¶
func (e CachedResponseType) Valid() bool
type DataEntry ¶
type DataEntry struct {
RequestURL string `json:"requestURL"` // Request URL.
RequestMethod string `json:"requestMethod"` // Request method.
RequestHeaders []Header `json:"requestHeaders"` // Request headers
ResponseTime float64 `json:"responseTime"` // Number of seconds since epoch.
ResponseStatus int `json:"responseStatus"` // HTTP response status code.
ResponseStatusText string `json:"responseStatusText"` // HTTP response status text.
ResponseType CachedResponseType `json:"responseType"` // HTTP response type
ResponseHeaders []Header `json:"responseHeaders"` // Response headers
}
DataEntry Data entry.
type DeleteCacheArgs ¶
type DeleteCacheArgs struct {
CacheID CacheID `json:"cacheId"` // Id of cache for deletion.
}
DeleteCacheArgs represents the arguments for DeleteCache in the CacheStorage domain.
func (*DeleteCacheArgs) MarshalJSON ¶
func (a *DeleteCacheArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for DeleteCache in the CacheStorage domain.
func (*DeleteCacheArgs) UnmarshalJSON ¶
func (a *DeleteCacheArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for DeleteCache in the CacheStorage domain.
type DeleteCacheReply ¶
type DeleteCacheReply struct {
}
DeleteCacheReply represents the return values for DeleteCache in the CacheStorage domain.
func (*DeleteCacheReply) GetFrameID ¶
func (a *DeleteCacheReply) GetFrameID() string
DeleteCacheReply returns the FrameID value for DeleteCache in the CacheStorage domain.
func (*DeleteCacheReply) MatchFrameID ¶
func (a *DeleteCacheReply) MatchFrameID(frameID string, m []byte) (bool, error)
DeleteCacheReply returns whether or not the FrameID matches the reply value for DeleteCache in the CacheStorage domain.
func (*DeleteCacheReply) UnmarshalJSON ¶
func (a *DeleteCacheReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for DeleteCache in the CacheStorage domain.
type DeleteEntryArgs ¶
type DeleteEntryArgs struct {
CacheID CacheID `json:"cacheId"` // Id of cache where the entry will be deleted.
Request string `json:"request"` // URL spec of the request.
}
DeleteEntryArgs represents the arguments for DeleteEntry in the CacheStorage domain.
func (*DeleteEntryArgs) MarshalJSON ¶
func (a *DeleteEntryArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for DeleteEntry in the CacheStorage domain.
func (*DeleteEntryArgs) UnmarshalJSON ¶
func (a *DeleteEntryArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for DeleteEntry in the CacheStorage domain.
type DeleteEntryReply ¶
type DeleteEntryReply struct {
}
DeleteEntryReply represents the return values for DeleteEntry in the CacheStorage domain.
func (*DeleteEntryReply) GetFrameID ¶
func (a *DeleteEntryReply) GetFrameID() string
DeleteEntryReply returns the FrameID value for DeleteEntry in the CacheStorage domain.
func (*DeleteEntryReply) MatchFrameID ¶
func (a *DeleteEntryReply) MatchFrameID(frameID string, m []byte) (bool, error)
DeleteEntryReply returns whether or not the FrameID matches the reply value for DeleteEntry in the CacheStorage domain.
func (*DeleteEntryReply) UnmarshalJSON ¶
func (a *DeleteEntryReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for DeleteEntry in the CacheStorage domain.
type Header ¶
type Header struct {
Name string `json:"name"` // No description.
Value string `json:"value"` // No description.
}
Header
type RequestCacheNamesArgs ¶
type RequestCacheNamesArgs struct {
SecurityOrigin string `json:"securityOrigin"` // Security origin.
}
RequestCacheNamesArgs represents the arguments for RequestCacheNames in the CacheStorage domain.
func (*RequestCacheNamesArgs) MarshalJSON ¶
func (a *RequestCacheNamesArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for RequestCacheNames in the CacheStorage domain.
func (*RequestCacheNamesArgs) UnmarshalJSON ¶
func (a *RequestCacheNamesArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for RequestCacheNames in the CacheStorage domain.
type RequestCacheNamesReply ¶
type RequestCacheNamesReply struct {
Caches []Cache `json:"caches"` // Caches for the security origin.
}
RequestCacheNamesReply represents the return values for RequestCacheNames in the CacheStorage domain.
func (*RequestCacheNamesReply) GetFrameID ¶
func (a *RequestCacheNamesReply) GetFrameID() string
RequestCacheNamesReply returns the FrameID value for RequestCacheNames in the CacheStorage domain.
func (*RequestCacheNamesReply) MatchFrameID ¶
func (a *RequestCacheNamesReply) MatchFrameID(frameID string, m []byte) (bool, error)
RequestCacheNamesReply returns whether or not the FrameID matches the reply value for RequestCacheNames in the CacheStorage domain.
func (*RequestCacheNamesReply) UnmarshalJSON ¶
func (a *RequestCacheNamesReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for RequestCacheNames in the CacheStorage domain.
type RequestCachedResponseArgs ¶
type RequestCachedResponseArgs struct {
CacheID CacheID `json:"cacheId"` // Id of cache that contains the entry.
RequestURL string `json:"requestURL"` // URL spec of the request.
RequestHeaders []Header `json:"requestHeaders"` // headers of the request.
}
RequestCachedResponseArgs represents the arguments for RequestCachedResponse in the CacheStorage domain.
func (*RequestCachedResponseArgs) MarshalJSON ¶
func (a *RequestCachedResponseArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for RequestCachedResponse in the CacheStorage domain.
func (*RequestCachedResponseArgs) UnmarshalJSON ¶
func (a *RequestCachedResponseArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for RequestCachedResponse in the CacheStorage domain.
type RequestCachedResponseReply ¶
type RequestCachedResponseReply struct {
Response CachedResponse `json:"response"` // Response read from the cache.
}
RequestCachedResponseReply represents the return values for RequestCachedResponse in the CacheStorage domain.
func (*RequestCachedResponseReply) GetFrameID ¶
func (a *RequestCachedResponseReply) GetFrameID() string
RequestCachedResponseReply returns the FrameID value for RequestCachedResponse in the CacheStorage domain.
func (*RequestCachedResponseReply) MatchFrameID ¶
func (a *RequestCachedResponseReply) MatchFrameID(frameID string, m []byte) (bool, error)
RequestCachedResponseReply returns whether or not the FrameID matches the reply value for RequestCachedResponse in the CacheStorage domain.
func (*RequestCachedResponseReply) UnmarshalJSON ¶
func (a *RequestCachedResponseReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for RequestCachedResponse in the CacheStorage domain.
type RequestEntriesArgs ¶
type RequestEntriesArgs struct {
CacheID CacheID `json:"cacheId"` // ID of cache to get entries from.
SkipCount int `json:"skipCount,omitempty"` // Number of records to skip.
PageSize int `json:"pageSize,omitempty"` // Number of records to fetch.
PathFilter string `json:"pathFilter,omitempty"` // If present, only return the entries containing this substring in the path
}
RequestEntriesArgs represents the arguments for RequestEntries in the CacheStorage domain.
func (*RequestEntriesArgs) MarshalJSON ¶
func (a *RequestEntriesArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for RequestEntries in the CacheStorage domain.
func (*RequestEntriesArgs) UnmarshalJSON ¶
func (a *RequestEntriesArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for RequestEntries in the CacheStorage domain.
type RequestEntriesReply ¶
type RequestEntriesReply struct {
CacheDataEntries []DataEntry `json:"cacheDataEntries"` // Array of object store data entries.
ReturnCount float64 `json:"returnCount"` // Count of returned entries from this storage. If pathFilter is empty, it is the count of all entries from this storage.
}
RequestEntriesReply represents the return values for RequestEntries in the CacheStorage domain.
func (*RequestEntriesReply) GetFrameID ¶
func (a *RequestEntriesReply) GetFrameID() string
RequestEntriesReply returns the FrameID value for RequestEntries in the CacheStorage domain.
func (*RequestEntriesReply) MatchFrameID ¶
func (a *RequestEntriesReply) MatchFrameID(frameID string, m []byte) (bool, error)
RequestEntriesReply returns whether or not the FrameID matches the reply value for RequestEntries in the CacheStorage domain.
func (*RequestEntriesReply) UnmarshalJSON ¶
func (a *RequestEntriesReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for RequestEntries in the CacheStorage domain.