Documentation ¶
Index ¶
- Constants
- func DecodeMetadata(input any, result any) error
- func GetMetadataInfoFromStructType(t reflect.Type, metadataMap *MetadataMap, componentType ComponentType) error
- func IsRawPayload(props map[string]string) (bool, error)
- func TryGetContentType(props map[string]string) (string, bool)
- type Base
- type ByteSize
- type ComponentType
- type Duration
- type MetadataField
- type MetadataMap
Constants ¶
View Source
const ( RawPayloadKey = "rawPayload" ContentType = "contentType" )
Variables ¶
This section is empty.
Functions ¶
func DecodeMetadata ¶
func GetMetadataInfoFromStructType ¶
func GetMetadataInfoFromStructType(t reflect.Type, metadataMap *MetadataMap, componentType ComponentType) error
GetMetadataInfoFromStructType converts a struct to a map of field name (or struct tag) to field type. This is used to generate metadata documentation for components.
Types ¶
type ByteSize ¶
func NewByteSize ¶
NewByteSize returns a new ByteSize with a default value in bytes.
type ComponentType ¶
type ComponentType string
const ( BindingType ComponentType = "bindings" StateStoreType ComponentType = "state" SecretStoreType ComponentType = "secretstores" PubSubType ComponentType = "pubsub" LockStoreType ComponentType = "lock" ConfigurationStoreType ComponentType = "configuration" MiddlewareType ComponentType = "middleware" CryptoType ComponentType = "crypto" NameResolutionType ComponentType = "nameresolution" WorkflowType ComponentType = "workflows" )
func (ComponentType) BuiltInMetadataProperties ¶
func (t ComponentType) BuiltInMetadataProperties() []string
BuiltInMetadataProperties returns the built-in metadata properties for the given component type. These are normally parsed by the runtime.
func (ComponentType) IsValid ¶
func (t ComponentType) IsValid() bool
IsValid returns true if the component type is valid.
type MetadataField ¶
type MetadataMap ¶
type MetadataMap map[string]MetadataField
Click to show internal directories.
Click to hide internal directories.