Documentation
¶
Overview ¶
Package kernel defines the interface for go programs to interact with the @jsii/kernel node process. This module completely abstracts managament of the child process.
Index ¶
- func CloseClient()
- func GetClient() *client
- type BeginRequest
- type BeginResponse
- type CallbacksResponse
- type CompleteRequest
- type CompleteResponse
- type CreateRequest
- type CreateResponse
- type DelRequest
- type DelResponse
- type EndRequest
- type EndResponse
- type GetRequest
- type GetResponse
- type HelloMessage
- type InvokeRequest
- type InvokeResponse
- type LoadRequest
- type LoadResponse
- type NamingRequest
- type NamingResponse
- type SetRequest
- type SetResponse
- type StaticGetRequest
- type StaticInvokeRequest
- type StaticSetRequest
- type StatsResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseClient ¶
func CloseClient()
CloseClient finalizes the runtime process, signalling the end of the execution to the jsii kernel process, and waiting for graceful termination.
If a jsii client is used *after* CloseClient was called, a new jsii kernel process will be initialized, and CloseClient should be called again to correctly finalize that, too.
Types ¶
type BeginRequest ¶
type BeginResponse ¶
type BeginResponse struct {
PromiseID *string `json:"promise_id"`
// contains filtered or unexported fields
}
type CallbacksResponse ¶
type CompleteRequest ¶
type CompleteResponse ¶
type CompleteResponse struct {
CallbackID *string `json:"cbid"`
// contains filtered or unexported fields
}
type CreateRequest ¶
type CreateResponse ¶
type CreateResponse struct {
InstanceID string `json:"$jsii.byref"`
// contains filtered or unexported fields
}
TODO extends AnnotatedObjRef?
func (*CreateResponse) UnmarshalJSON ¶
func (r *CreateResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON provides custom unmarshalling implementation for response structs. Creating new types is required in order to avoid infinite recursion.
type DelRequest ¶
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 GetRequest ¶
type GetResponse ¶
type GetResponse struct {
Value interface{} `json:"value"`
// contains filtered or unexported fields
}
func (*GetResponse) UnmarshalJSON ¶
func (r *GetResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON provides custom unmarshalling implementation for response structs. Creating new types is required in order to avoid infinite recursion.
type HelloMessage ¶
type HelloMessage struct {
Hello string `json:"hello"`
// contains filtered or unexported fields
}
type InvokeRequest ¶
type InvokeResponse ¶
type InvokeResponse struct {
Result interface{} `json:"result"`
// contains filtered or unexported fields
}
func (*InvokeResponse) UnmarshalJSON ¶
func (r *InvokeResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON provides custom unmarshalling implementation for response structs. Creating new types is required in order to avoid infinite recursion.
type LoadRequest ¶
type LoadRequest struct {
API string `json:"api"`
Name string `json:"name"`
Version string `json:"version"`
Tarball string `json:"tarball"`
// contains filtered or unexported fields
}
LoadRequest holds the necessary information to load a library into the @jsii/kernel process through the Load method.
type LoadResponse ¶
type LoadResponse struct {
Assembly string `json:"assembly"`
Types float64 `json:"types"`
// contains filtered or unexported fields
}
LoadResponse contains the data returned by the @jsii/kernel process in response to a load request.
func (*LoadResponse) UnmarshalJSON ¶
func (r *LoadResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON provides custom unmarshalling implementation for response structs. Creating new types is required in order to avoid infinite recursion.
type NamingRequest ¶
type NamingResponse ¶
type NamingResponse struct {
// contains filtered or unexported fields
}
type SetRequest ¶
type SetResponse ¶
type SetResponse struct {
// contains filtered or unexported fields
}
func (*SetResponse) UnmarshalJSON ¶
func (r *SetResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON provides custom unmarshalling implementation for response structs. Creating new types is required in order to avoid infinite recursion.
type StaticGetRequest ¶
type StaticInvokeRequest ¶
type StaticSetRequest ¶
type StatsResponse ¶
type StatsResponse struct {
ObjectCount float64 `json:"object_count"`
// contains filtered or unexported fields
}