api

package
v1.23.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

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 IsMethodOverride(value Override) bool

func IsPropertyOverride

func IsPropertyOverride(value Override) bool

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 EnumRef

type EnumRef struct {
	MemberFQN string `json:"$jsii.enum"`
}

type FQN

type FQN string

FQN represents a fully-qualified type name in the jsii type system.

type GetCallback

type GetCallback struct {
	Property string    `json:"property"`
	ObjRef   ObjectRef `json:"objref"`
}

type InvokeCallback

type InvokeCallback struct {
	Method    string        `json:"method"`
	Arguments []interface{} `json:"args"`
	ObjRef    ObjectRef     `json:"objref"`
}

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 ObjectRef

type ObjectRef struct {
	InstanceID string `json:"$jsii.byref"`
}

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.

type SetCallback

type SetCallback struct {
	Property string      `json:"property"`
	Value    interface{} `json:"value"`
	ObjRef   ObjectRef   `json:"objref"`
}

type WireMap

type WireMap struct {
	MapData map[string]interface{} `json:"$jsii.map"`
}

Jump to

Keyboard shortcuts

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