cachestorage

package
v0.19.2 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package cachestorage implements the CacheStorage domain.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(conn *rpcc.Conn) *domainClient

NewClient returns a client for the CacheStorage domain with the connection set to conn.

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 CacheID

type CacheID string

CacheID Unique identifier of the Cache object.

type CachedResponse added in v0.9.1

type CachedResponse struct {
	Body string `json:"body"` // Entry content, base64-encoded.
}

CachedResponse Cached response

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.
	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 NewDeleteCacheArgs

func NewDeleteCacheArgs(cacheID CacheID) *DeleteCacheArgs

NewDeleteCacheArgs initializes DeleteCacheArgs with the required arguments.

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 NewDeleteEntryArgs

func NewDeleteEntryArgs(cacheID CacheID, request string) *DeleteEntryArgs

NewDeleteEntryArgs initializes DeleteEntryArgs with the required arguments.

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 NewRequestCacheNamesArgs

func NewRequestCacheNamesArgs(securityOrigin string) *RequestCacheNamesArgs

NewRequestCacheNamesArgs initializes RequestCacheNamesArgs with the required arguments.

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.

type RequestCachedResponseArgs added in v0.9.1

type RequestCachedResponseArgs struct {
	CacheID    CacheID `json:"cacheId"`    // Id of cache that contains the enty.
	RequestURL string  `json:"requestURL"` // URL spec of the request.
}

RequestCachedResponseArgs represents the arguments for RequestCachedResponse in the CacheStorage domain.

func NewRequestCachedResponseArgs added in v0.9.1

func NewRequestCachedResponseArgs(cacheID CacheID, requestURL string) *RequestCachedResponseArgs

NewRequestCachedResponseArgs initializes RequestCachedResponseArgs with the required arguments.

type RequestCachedResponseReply added in v0.9.1

type RequestCachedResponseReply struct {
	Response CachedResponse `json:"response"` // Response read from the cache.
}

RequestCachedResponseReply represents the return values 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"` // Number of records to skip.
	PageSize  int     `json:"pageSize"`  // Number of records to fetch.
}

RequestEntriesArgs represents the arguments for RequestEntries in the CacheStorage domain.

func NewRequestEntriesArgs

func NewRequestEntriesArgs(cacheID CacheID, skipCount int, pageSize int) *RequestEntriesArgs

NewRequestEntriesArgs initializes RequestEntriesArgs with the required arguments.

type RequestEntriesReply

type RequestEntriesReply struct {
	CacheDataEntries []DataEntry `json:"cacheDataEntries"` // Array of object store data entries.
	HasMore          bool        `json:"hasMore"`          // If true, there are more entries to fetch in the given range.
}

RequestEntriesReply represents the return values for RequestEntries in the CacheStorage domain.

Jump to

Keyboard shortcuts

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