annotation

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const AssetCapability = "embed_assets"
View Source
const ConfigCapability = "config"
View Source
const ExecutionUnitCapability = "execution_unit"
View Source
const ExposeCapability = "expose"
View Source
const PersistCapability = "persist"
View Source
const PubSubCapability = "pubsub"
View Source
const StaticUnitCapability = "static_unit"

Variables

This section is empty.

Functions

This section is empty.

Types

type Capability

type Capability struct {
	Name       string     `json:"name"`
	ID         string     `json:"id"`
	Directives Directives `json:"directives"`
}

func ParseCapability

func ParseCapability(s string) (*Capability, error)

type Directives

type Directives map[string]interface{}

func ParseDirectives

func ParseDirectives(s string) (Directives, error)

func (Directives) Bool

func (d Directives) Bool(key string) (bool, bool)

func (Directives) Int

func (d Directives) Int(key string) (int, bool)

func (Directives) Object

func (d Directives) Object(key string) Directives

func (Directives) String

func (d Directives) String(key string) (string, bool)

func (Directives) StringArray

func (d Directives) StringArray(key string) ([]string, bool)

StringArray returns an array of strings (converting a single string to an array of lenth 1).

Jump to

Keyboard shortcuts

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