Documentation ¶
Index ¶
- func NewTestDataConverter() converter.DataConverter
- type TestDataConverter
- func (dc *TestDataConverter) FromPayload(payload *commonpb.Payload, valuePtr interface{}) error
- func (dc *TestDataConverter) FromPayloads(payloads *commonpb.Payloads, valuePtrs ...interface{}) error
- func (dc *TestDataConverter) ToPayload(value interface{}) (*commonpb.Payload, error)
- func (dc *TestDataConverter) ToPayloads(values ...interface{}) (*commonpb.Payloads, error)
- func (dc *TestDataConverter) ToString(payload *commonpb.Payload) string
- func (dc *TestDataConverter) ToStrings(payloads *commonpb.Payloads) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTestDataConverter ¶
func NewTestDataConverter() converter.DataConverter
NewTestDataConverter created new instance of TestDataConverter.
Types ¶
type TestDataConverter ¶
type TestDataConverter struct{}
TestDataConverter implements DataConverter using gob.
func (*TestDataConverter) FromPayload ¶
func (dc *TestDataConverter) FromPayload(payload *commonpb.Payload, valuePtr interface{}) error
FromPayload converts single value from payload.
func (*TestDataConverter) FromPayloads ¶
func (dc *TestDataConverter) FromPayloads(payloads *commonpb.Payloads, valuePtrs ...interface{}) error
FromPayloads converts to a list of values of different types.
func (*TestDataConverter) ToPayload ¶
func (dc *TestDataConverter) ToPayload(value interface{}) (*commonpb.Payload, error)
ToPayload converts single value to payload.
func (*TestDataConverter) ToPayloads ¶
func (dc *TestDataConverter) ToPayloads(values ...interface{}) (*commonpb.Payloads, error)
ToPayloads converts a list of values.
Click to show internal directories.
Click to hide internal directories.