proxyctx

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProxyHelper

type ProxyHelper interface {
	RouteCall(ref core.RecordRef, method string, args []byte) ([]byte, error)
	RouteConstructorCall(classRef core.RecordRef, name string, args []byte) ([]byte, error)
	SaveAsChild(parentRef, classRef core.RecordRef, data []byte) (core.RecordRef, error)
	GetObjChildren(head core.RecordRef, class core.RecordRef) ([]core.RecordRef, error)
	SaveAsDelegate(parentRef, classRef core.RecordRef, data []byte) (core.RecordRef, error)
	GetDelegate(object, ofType core.RecordRef) (core.RecordRef, error)
	Serialize(what interface{}, to *[]byte) error
	Deserialize(from []byte, into interface{}) error
}

ProxyHelper interface with methods that are needed by contract proxies

var Current ProxyHelper

Current - hackish way to give proxies access to the current environment

Jump to

Keyboard shortcuts

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