Documentation ¶
Index ¶
- type Converter
- func (this *Converter) Cast(in interface{}, from marshaller.CharacteristicId, ...) (out interface{}, err error)
- func (this *Converter) CastWithExtension(in interface{}, from marshaller.CharacteristicId, ...) (out interface{}, err error)
- func (this *Converter) TryExtension(call ExtensionCall) (resp ExtensionCallResponse, err error)
- type ExtensionCall
- type ExtensionCallResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Converter ¶
type Converter struct {
// contains filtered or unexported fields
}
func (*Converter) Cast ¶
func (this *Converter) Cast(in interface{}, from marshaller.CharacteristicId, to marshaller.CharacteristicId) (out interface{}, err error)
func (*Converter) CastWithExtension ¶
func (this *Converter) CastWithExtension(in interface{}, from marshaller.CharacteristicId, to marshaller.CharacteristicId, extensions []models.ConverterExtension) (out interface{}, err error)
func (*Converter) TryExtension ¶
func (this *Converter) TryExtension(call ExtensionCall) (resp ExtensionCallResponse, err error)
type ExtensionCall ¶
type ExtensionCall struct { Input interface{} `json:"input"` Extension models.ConverterExtension `json:"extension"` }
type ExtensionCallResponse ¶
type ExtensionCallResponse struct { Output interface{} `json:"output"` Error string `json:"error,omitempty"` }
Click to show internal directories.
Click to hide internal directories.