api

package
v1.25.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 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 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 MethodOverride

type MethodOverride struct {
	JsiiMethod string `json:"method"`
	GoMethod   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 {
	JsiiProperty string `json:"property"`
	GoGetter     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 StructDescriptor

type StructDescriptor struct {
	FQN    FQN                    `json:"fqn"`
	Fields map[string]interface{} `json:"data"`
}

type WireMap

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

type WireStruct

type WireStruct struct {
	StructDescriptor `json:"$jsii.struct"`
}

Jump to

Keyboard shortcuts

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