Documentation
¶
Overview ¶
Package api contains shared type definisions used by several modules part of the jsii runtime for go. It helps avoid creating circular dependencies between the other modules.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsMethodOverride ¶
func IsPropertyOverride ¶
Types ¶
type Callback ¶
type Callback struct {
CallbackID *string `json:"cbid"`
Cookie *string `json:"cookie"`
Invoke InvokeCallback `json:"invoke"`
Get GetCallback `json:"get"`
Set SetCallback `json:"set"`
}
type GetCallback ¶
type InvokeCallback ¶
type MethodOverride ¶
type MethodOverride struct {
Method *string `json:"method"`
Cookie *string `json:"cookie"`
// contains filtered or unexported fields
}
MethodOverride is used to register a "go-native" implementation to be substituted to the default javascript implementation on the created object.
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 PropertyOverride struct {
Property *string `json:"property"`
Cookie *string `json:"cookie"`
// contains filtered or unexported fields
}
PropertyOverride is used to register a "go-native" implementation to be substituted to the default javascript implementation on the created object.