Documentation ¶
Overview ¶
NoOp module stubs out runtime functionality during development TODO: Delete once runtime client is complete and functional
Index ¶
- func CheckFatalError(e error)
- func Close()
- func Create(fqn FQN, args []interface{}, interfaces []FQN, overrides []Override, ...)
- func Get(obj interface{}, property string, ret interface{}, implMap implementationMap)
- func Invoke(obj interface{}, method string, args []interface{}, hasReturn bool, ...)
- func InvokeStatic(fqn FQN, method string, args []interface{}, hasReturn bool, ret interface{}, ...)
- func Load(name string, version string, tarball []byte)
- func NoOpRequest(req NoOpApiRequest)
- func Set(obj interface{}, property string, value interface{})
- func StaticGet(fqn FQN, property string, ret interface{}, implMap implementationMap)
- func StaticSet(fqn FQN, property string, value interface{})
- type Any
- type BeginRequest
- type BeginResponse
- type Callback
- type CallbacksRequest
- type CallbacksResponse
- type CompleteRequest
- type CompleteResponse
- type DelRequest
- type DelResponse
- type EndRequest
- type EndResponse
- type ErrorResponse
- type FQN
- type InitOkResponse
- type KernelRequest
- type KernelResponse
- type LoadRequest
- type LoadResponse
- type MethodOverride
- type NamingRequest
- type NamingResponse
- type NoOpApiRequest
- type OkayResponse
- type Override
- type PropertyOverride
- type StatsRequest
- type StatsResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckFatalError ¶
func CheckFatalError(e error)
func Close ¶
func Close()
Close finalizes the runtime process, signalling the end of the execution to the jsii kernel process, and waiting for graceful termination. The best practice is to defer call thins at the beginning of the "main" function.
If a jsii client is used *after* Close was called, a new jsii kernel process will be initialized, and Close should be called again to correctly finalize that, too. This behavior is intended for use in unit/integration tests.
func Create ¶
Create will construct a new JSII object within the kernel runtime. This is called by jsii object constructors.
func Invoke ¶
func Invoke(obj interface{}, method string, args []interface{}, hasReturn bool, ret interface{}, implMap implementationMap)
Invoke will call a method on a jsii class instance. The response should be decoded into the expected return type for the method being called.
func InvokeStatic ¶
func NoOpRequest ¶
func NoOpRequest(req NoOpApiRequest)
Types ¶
type BeginRequest ¶
type BeginResponse ¶
type BeginResponse struct { Promiseid *string `json:"promise_id"` // contains filtered or unexported fields }
type CallbacksRequest ¶
type CallbacksRequest struct { Api string `json:"api"` // contains filtered or unexported fields }
type CallbacksResponse ¶
type CallbacksResponse struct { Callbacks []Callback `json:"callbacks"` // contains filtered or unexported fields }
type CompleteRequest ¶
type CompleteResponse ¶
type CompleteResponse struct { Cbid *string `json:"cbid"` // contains filtered or unexported fields }
type DelRequest ¶
type DelRequest struct { Api string `json:"api"` Objref objref `json:"objref"` // contains filtered or unexported fields }
type DelResponse ¶
type DelResponse struct {
// contains filtered or unexported fields
}
type EndRequest ¶
type EndResponse ¶
type EndResponse struct { Result interface{} `json:"result"` // contains filtered or unexported fields }
type ErrorResponse ¶
type InitOkResponse ¶
type InitOkResponse struct { Hello string `json:"hello"` // contains filtered or unexported fields }
HelloResponse?
type KernelRequest ¶
type KernelRequest interface {
// contains filtered or unexported methods
}
KernelRequest and KernelResponse allow creating a union of KernelRequest and KernelResponse types by defining private method implemented by a private custom type, which is embedded in all relevant types.
type KernelResponse ¶
type KernelResponse interface {
// contains filtered or unexported methods
}
type LoadRequest ¶
type LoadResponse ¶
type LoadResponse struct { Assembly string `json:"assembly"` Types float64 `json:"types"` // contains filtered or unexported fields }
func (*LoadResponse) UnmarshalJSON ¶
func (r *LoadResponse) UnmarshalJSON(data []byte) error
Custom unmarshalling implementation for response structs. Creating new types is required in order to avoid infinite recursion.
type MethodOverride ¶
type NamingRequest ¶
type NamingResponse ¶
type NamingResponse struct {
// contains filtered or unexported fields
}
type NoOpApiRequest ¶
type OkayResponse ¶
type OkayResponse struct {
Ok interface{} `json:"ok"`
}
type Override ¶
type Override interface {
// contains filtered or unexported methods
}
Override is a public interface implementing a private method `isOverride` implemented by the private custom type `override`. This is embedded by MethodOverride and PropertyOverride to simulate the union type of Override = MethodOverride | PropertyOverride.
type PropertyOverride ¶
type StatsRequest ¶
type StatsRequest struct { Api string `json:"api"` // contains filtered or unexported fields }
type StatsResponse ¶
type StatsResponse struct { ObjectCount float64 `json:"object_count"` // contains filtered or unexported fields }