durableobjects

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Rendered for js/wasm

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	*DurableObjectStub
}

func GetContainer

func GetContainer(binding string, id string) (*Container, error)

func (*Container) ContainerFetch

func (s *Container) ContainerFetch(req *http.Request) (*http.Response, error)

type DurableObjectId

type DurableObjectId struct {
	// contains filtered or unexported fields
}

type DurableObjectNamespace

type DurableObjectNamespace struct {
	// contains filtered or unexported fields
}

func NewDurableObjectNamespace

func NewDurableObjectNamespace(varName string) (*DurableObjectNamespace, error)

func (*DurableObjectNamespace) Get

func (*DurableObjectNamespace) IdFromName

func (ns *DurableObjectNamespace) IdFromName(name string) *DurableObjectId

func (*DurableObjectNamespace) IdFromString

func (ns *DurableObjectNamespace) IdFromString(id string) (*DurableObjectId, error)

func (*DurableObjectNamespace) Jurisdiction

func (ns *DurableObjectNamespace) Jurisdiction(jur string) *DurableObjectNamespace

func (*DurableObjectNamespace) NewUniqueId

func (ns *DurableObjectNamespace) NewUniqueId() *DurableObjectId

type DurableObjectStub

type DurableObjectStub struct {
	// contains filtered or unexported fields
}

func (*DurableObjectStub) Call

func (s *DurableObjectStub) Call(funcName string) (any, error)

func (*DurableObjectStub) Fetch

func (s *DurableObjectStub) Fetch(req *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

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