Versions in this module Expand all Collapse all v0 v0.18.1 Nov 22, 2023 Changes in this version + func GetBinding(ctx context.Context, name string) js.Value + func Getenv(ctx context.Context, name string) string + func PassThroughOnException(ctx context.Context) + func WaitUntil(ctx context.Context, task func()) + type DurableObjectId struct + type DurableObjectNamespace struct + func NewDurableObjectNamespace(ctx context.Context, varName string) (*DurableObjectNamespace, error) + func (ns *DurableObjectNamespace) Get(id *DurableObjectId) (*DurableObjectStub, error) + func (ns *DurableObjectNamespace) IdFromName(name string) *DurableObjectId + type DurableObjectStub struct + func (s *DurableObjectStub) Fetch(req *http.Request) (*http.Response, error) + type KVNamespace struct + func NewKVNamespace(ctx context.Context, varName string) (*KVNamespace, error) + func (kv *KVNamespace) Delete(key string) error + func (kv *KVNamespace) GetReader(key string, opts *KVNamespaceGetOptions) (io.Reader, error) + func (kv *KVNamespace) GetString(key string, opts *KVNamespaceGetOptions) (string, error) + func (kv *KVNamespace) List(opts *KVNamespaceListOptions) (*KVNamespaceListResult, error) + func (kv *KVNamespace) PutReader(key string, value io.Reader, opts *KVNamespacePutOptions) error + func (kv *KVNamespace) PutString(key string, value string, opts *KVNamespacePutOptions) error + type KVNamespaceGetOptions struct + CacheTTL int + type KVNamespaceListKey struct + Expiration int + Name string + type KVNamespaceListOptions struct + Cursor string + Limit int + Prefix string + type KVNamespaceListResult struct + Cursor string + Keys []*KVNamespaceListKey + ListComplete bool + type KVNamespacePutOptions struct + Expiration int + ExpirationTTL int + type R2Bucket struct + func NewR2Bucket(ctx context.Context, varName string) (*R2Bucket, error) + func (r *R2Bucket) Delete(key string) error + func (r *R2Bucket) Get(key string) (*R2Object, error) + func (r *R2Bucket) Head(key string) (*R2Object, error) + func (r *R2Bucket) List() (*R2Objects, error) + func (r *R2Bucket) Put(key string, value io.ReadCloser, opts *R2PutOptions) (*R2Object, error) + type R2HTTPMetadata struct + CacheControl string + CacheExpiry time.Time + ContentDisposition string + ContentEncoding string + ContentLanguage string + ContentType string + type R2Object struct + Body io.Reader + CustomMetadata map[string]string + ETag string + HTTPETag string + HTTPMetadata R2HTTPMetadata + Key string + Size int + Uploaded time.Time + Version string + func (o *R2Object) BodyUsed() (bool, error) + type R2Objects struct + Cursor string + DelimitedPrefixes []string + Objects []*R2Object + Truncated bool + type R2PutOptions struct + CustomMetadata map[string]string + HTTPMetadata R2HTTPMetadata + MD5 string