Documentation
¶
Index ¶
- func Convert(input any, datamodel any, provider *documents.Provider, tt string, ...) error
- func GenerateInputConversionProgram(source *documents.APIVersion, destination *documents.Datamodel) (*string, error)
- type MapAdapter
- type TypeProvider
- func (tp *TypeProvider) EnumValue(enumName string) ref.Val
- func (tp *TypeProvider) FindIdent(identName string) (ref.Val, bool)
- func (tp *TypeProvider) FindStructFieldNames(structType string) ([]string, bool)
- func (tp *TypeProvider) FindStructFieldType(structType string, fieldName string) (*types.FieldType, bool)
- func (tp *TypeProvider) FindStructType(structType string) (*types.Type, bool)
- func (tp *TypeProvider) NewValue(structType string, fields map[string]ref.Val) ref.Val
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MapAdapter ¶
type MapAdapter struct { }
func (*MapAdapter) NativeToValue ¶
func (m *MapAdapter) NativeToValue(value any) ref.Val
type TypeProvider ¶
type TypeProvider struct {
// contains filtered or unexported fields
}
func NewTypeProvider ¶
func NewTypeProvider(roots map[string]*documents.Schema) *TypeProvider
func (*TypeProvider) EnumValue ¶
func (tp *TypeProvider) EnumValue(enumName string) ref.Val
EnumValue implements types.Provider.
func (*TypeProvider) FindIdent ¶
func (tp *TypeProvider) FindIdent(identName string) (ref.Val, bool)
FindIdent implements types.Provider.
func (*TypeProvider) FindStructFieldNames ¶
func (tp *TypeProvider) FindStructFieldNames(structType string) ([]string, bool)
FindStructFieldNames implements types.Provider.
func (*TypeProvider) FindStructFieldType ¶
func (tp *TypeProvider) FindStructFieldType(structType string, fieldName string) (*types.FieldType, bool)
FindStructFieldType implements types.Provider.
func (*TypeProvider) FindStructType ¶
func (tp *TypeProvider) FindStructType(structType string) (*types.Type, bool)
FindStructType implements types.Provider.
Click to show internal directories.
Click to hide internal directories.