Package animeshon.webcache.v1alpha1
Index
WebCache
CreateCache |
---|
rpc CreateCache(CreateCacheRequest) Cache |
ListCaches |
---|
rpc ListCaches(ListCachesRequest) ListCachesResponse |
GetCache |
---|
rpc GetCache(GetCacheRequest) Cache See https://google.aip.dev/162#referencing-revisions for more information. |
DeleteCache |
---|
rpc DeleteCache(DeleteCacheRequest) .google.protobuf.Empty |
Cache
Cache contains meta information about a specific web resource.
Field | Description |
---|---|
name | string The name of the cache, idempotently generated from the scheme and uri. |
scheme | string The original scheme indicating the protocol used for the original request. |
uri | string The request uri stripped of the original scheme. |
mime_type | string The response content type indicating the original media type. |
status_code | int32 The response code indicating the status of the remote response. |
redirect_uri | string The absolute redirect uri indicating any permanent or temporary redirect. |
resource | string The full resource name of the cached resource. |
revision_id | string The randomly generated revision identifier of this cache. The format is an 8-character hexadecimal string. |
revision_create_time | google.protobuf.Timestamp The creation time indicating when this revision was created. |
revision_expire_time | google.protobuf.Timestamp The expiration time indicating when this revision should no longer be considered valid. |
CreateCacheRequest
Field | Description |
---|---|
cache | Cache The cache to be created. |
ttl | google.protobuf.Duration The time-to-live indicating how long this cache should be considered valid. If set to zero, the cache will not have an expiration time. |
DeleteCacheRequest
Field | Description |
---|---|
name | string The name of the cache to delete. |
GetCacheRequest
Field | Description |
---|---|
name | string The resource name of the requested cache. |
ListCachesRequest
Field | Description |
---|---|
page_size | int32 If unspecified, server will pick an appropriate default. |
page_token | string The value returned from the previous call. |
filter | string A filter to be applied to results. |
Currently accepted filters include: - uri:{absolute uri} - resource:{full resource name} |
| only_latest_revision | bool
Whether to return only the latest revision for each cache. |
ListCachesResponse
Field | Description |
---|---|
caches | repeated Cache The list of caches. |
next_page_token | string A token to retrieve next page of results. |