Documentation ¶
Overview ¶
Package formserialization is the default Kiota serialization implementation for URI form encoded.
Index ¶
- type FormParseNode
- func (n *FormParseNode) GetBoolValue() (*bool, error)
- func (n *FormParseNode) GetByteArrayValue() ([]byte, error)
- func (n *FormParseNode) GetByteValue() (*byte, error)
- func (n *FormParseNode) GetChildNode(index string) (absser.ParseNode, error)
- func (n *FormParseNode) GetCollectionOfEnumValues(parser absser.EnumFactory) ([]interface{}, error)
- func (n *FormParseNode) GetCollectionOfObjectValues(ctor absser.ParsableFactory) ([]absser.Parsable, error)
- func (n *FormParseNode) GetCollectionOfPrimitiveValues(targetType string) ([]interface{}, error)
- func (n *FormParseNode) GetDateOnlyValue() (*absser.DateOnly, error)
- func (n *FormParseNode) GetEnumValue(parser absser.EnumFactory) (interface{}, error)
- func (n *FormParseNode) GetFloat32Value() (*float32, error)
- func (n *FormParseNode) GetFloat64Value() (*float64, error)
- func (n *FormParseNode) GetISODurationValue() (*absser.ISODuration, error)
- func (n *FormParseNode) GetInt32Value() (*int32, error)
- func (n *FormParseNode) GetInt64Value() (*int64, error)
- func (n *FormParseNode) GetInt8Value() (*int8, error)
- func (n *FormParseNode) GetObjectValue(ctor absser.ParsableFactory) (absser.Parsable, error)
- func (n *FormParseNode) GetOnAfterAssignFieldValues() absser.ParsableAction
- func (n *FormParseNode) GetOnBeforeAssignFieldValues() absser.ParsableAction
- func (n *FormParseNode) GetRawValue() (interface{}, error)
- func (n *FormParseNode) GetStringValue() (*string, error)
- func (n *FormParseNode) GetTimeOnlyValue() (*absser.TimeOnly, error)
- func (n *FormParseNode) GetTimeValue() (*time.Time, error)
- func (n *FormParseNode) GetUUIDValue() (*uuid.UUID, error)
- func (n *FormParseNode) SetOnAfterAssignFieldValues(action absser.ParsableAction) error
- func (n *FormParseNode) SetOnBeforeAssignFieldValues(action absser.ParsableAction) error
- type FormParseNodeFactory
- type FormSerializationWriter
- func (w *FormSerializationWriter) Close() error
- func (w *FormSerializationWriter) GetOnAfterObjectSerialization() absser.ParsableAction
- func (w *FormSerializationWriter) GetOnBeforeSerialization() absser.ParsableAction
- func (w *FormSerializationWriter) GetOnStartObjectSerialization() absser.ParsableWriter
- func (w *FormSerializationWriter) GetSerializedContent() ([]byte, error)
- func (w *FormSerializationWriter) SetOnAfterObjectSerialization(action absser.ParsableAction) error
- func (w *FormSerializationWriter) SetOnBeforeSerialization(action absser.ParsableAction) error
- func (w *FormSerializationWriter) SetOnStartObjectSerialization(writer absser.ParsableWriter) error
- func (w *FormSerializationWriter) WriteAdditionalData(value map[string]interface{}) error
- func (w *FormSerializationWriter) WriteAnyValue(key string, value interface{}) error
- func (w *FormSerializationWriter) WriteBoolValue(key string, value *bool) error
- func (w *FormSerializationWriter) WriteByteArrayValue(key string, value []byte) error
- func (w *FormSerializationWriter) WriteByteValue(key string, value *byte) error
- func (w *FormSerializationWriter) WriteCollectionOfBoolValues(key string, collection []bool) error
- func (w *FormSerializationWriter) WriteCollectionOfByteValues(key string, collection []byte) error
- func (w *FormSerializationWriter) WriteCollectionOfDateOnlyValues(key string, collection []absser.DateOnly) error
- func (w *FormSerializationWriter) WriteCollectionOfFloat32Values(key string, collection []float32) error
- func (w *FormSerializationWriter) WriteCollectionOfFloat64Values(key string, collection []float64) error
- func (w *FormSerializationWriter) WriteCollectionOfISODurationValues(key string, collection []absser.ISODuration) error
- func (w *FormSerializationWriter) WriteCollectionOfInt32Values(key string, collection []int32) error
- func (w *FormSerializationWriter) WriteCollectionOfInt64Values(key string, collection []int64) error
- func (w *FormSerializationWriter) WriteCollectionOfInt8Values(key string, collection []int8) error
- func (w *FormSerializationWriter) WriteCollectionOfObjectValues(key string, collection []absser.Parsable) error
- func (w *FormSerializationWriter) WriteCollectionOfStringValues(key string, collection []string) error
- func (w *FormSerializationWriter) WriteCollectionOfTimeOnlyValues(key string, collection []absser.TimeOnly) error
- func (w *FormSerializationWriter) WriteCollectionOfTimeValues(key string, collection []time.Time) error
- func (w *FormSerializationWriter) WriteCollectionOfUUIDValues(key string, collection []uuid.UUID) error
- func (w *FormSerializationWriter) WriteDateOnlyValue(key string, value *absser.DateOnly) error
- func (w *FormSerializationWriter) WriteFloat32Value(key string, value *float32) error
- func (w *FormSerializationWriter) WriteFloat64Value(key string, value *float64) error
- func (w *FormSerializationWriter) WriteISODurationValue(key string, value *absser.ISODuration) error
- func (w *FormSerializationWriter) WriteInt32Value(key string, value *int32) error
- func (w *FormSerializationWriter) WriteInt64Value(key string, value *int64) error
- func (w *FormSerializationWriter) WriteInt8Value(key string, value *int8) error
- func (w *FormSerializationWriter) WriteNullValue(key string) error
- func (w *FormSerializationWriter) WriteObjectValue(key string, item absser.Parsable, additionalValuesToMerge ...absser.Parsable) error
- func (w *FormSerializationWriter) WriteStringValue(key string, value *string) error
- func (w *FormSerializationWriter) WriteTimeOnlyValue(key string, value *absser.TimeOnly) error
- func (w *FormSerializationWriter) WriteTimeValue(key string, value *time.Time) error
- func (w *FormSerializationWriter) WriteUUIDValue(key string, value *uuid.UUID) error
- type FormSerializationWriterFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FormParseNode ¶
type FormParseNode struct {
// contains filtered or unexported fields
}
FormParseNode is a ParseNode implementation for JSON.
func NewFormParseNode ¶
func NewFormParseNode(content []byte) (*FormParseNode, error)
NewFormParseNode creates a new FormParseNode.
func (*FormParseNode) GetBoolValue ¶
func (n *FormParseNode) GetBoolValue() (*bool, error)
GetBoolValue returns a Bool value from the nodes.
func (*FormParseNode) GetByteArrayValue ¶
func (n *FormParseNode) GetByteArrayValue() ([]byte, error)
GetByteArrayValue returns a ByteArray value from the nodes.
func (*FormParseNode) GetByteValue ¶
func (n *FormParseNode) GetByteValue() (*byte, error)
GetBoolValue returns a Bool value from the nodes.
func (*FormParseNode) GetChildNode ¶
func (n *FormParseNode) GetChildNode(index string) (absser.ParseNode, error)
GetChildNode returns a new parse node for the given identifier.
func (*FormParseNode) GetCollectionOfEnumValues ¶
func (n *FormParseNode) GetCollectionOfEnumValues(parser absser.EnumFactory) ([]interface{}, error)
GetCollectionOfEnumValues returns the collection of Enum values from the node.
func (*FormParseNode) GetCollectionOfObjectValues ¶
func (n *FormParseNode) GetCollectionOfObjectValues(ctor absser.ParsableFactory) ([]absser.Parsable, error)
GetCollectionOfObjectValues returns the collection of Parsable values from the node.
func (*FormParseNode) GetCollectionOfPrimitiveValues ¶
func (n *FormParseNode) GetCollectionOfPrimitiveValues(targetType string) ([]interface{}, error)
GetCollectionOfPrimitiveValues returns the collection of primitive values from the node.
func (*FormParseNode) GetDateOnlyValue ¶
func (n *FormParseNode) GetDateOnlyValue() (*absser.DateOnly, error)
GetDateOnlyValue returns a DateOnly value from the nodes.
func (*FormParseNode) GetEnumValue ¶
func (n *FormParseNode) GetEnumValue(parser absser.EnumFactory) (interface{}, error)
GetEnumValue returns a Enum value from the nodes.
func (*FormParseNode) GetFloat32Value ¶
func (n *FormParseNode) GetFloat32Value() (*float32, error)
GetFloat32Value returns a Float32 value from the nodes.
func (*FormParseNode) GetFloat64Value ¶
func (n *FormParseNode) GetFloat64Value() (*float64, error)
GetFloat64Value returns a Float64 value from the nodes.
func (*FormParseNode) GetISODurationValue ¶
func (n *FormParseNode) GetISODurationValue() (*absser.ISODuration, error)
GetISODurationValue returns a ISODuration value from the nodes.
func (*FormParseNode) GetInt32Value ¶
func (n *FormParseNode) GetInt32Value() (*int32, error)
GetInt32Value returns a Int32 value from the nodes.
func (*FormParseNode) GetInt64Value ¶
func (n *FormParseNode) GetInt64Value() (*int64, error)
GetInt64Value returns a Int64 value from the nodes.
func (*FormParseNode) GetInt8Value ¶
func (n *FormParseNode) GetInt8Value() (*int8, error)
GetInt8Value returns a int8 value from the nodes.
func (*FormParseNode) GetObjectValue ¶
func (n *FormParseNode) GetObjectValue(ctor absser.ParsableFactory) (absser.Parsable, error)
GetObjectValue returns the Parsable value from the node.
func (*FormParseNode) GetOnAfterAssignFieldValues ¶ added in v0.3.0
func (n *FormParseNode) GetOnAfterAssignFieldValues() absser.ParsableAction
func (*FormParseNode) GetOnBeforeAssignFieldValues ¶ added in v0.3.0
func (n *FormParseNode) GetOnBeforeAssignFieldValues() absser.ParsableAction
func (*FormParseNode) GetRawValue ¶
func (n *FormParseNode) GetRawValue() (interface{}, error)
GetRawValue returns a ByteArray value from the nodes.
func (*FormParseNode) GetStringValue ¶
func (n *FormParseNode) GetStringValue() (*string, error)
GetStringValue returns a String value from the nodes.
func (*FormParseNode) GetTimeOnlyValue ¶
func (n *FormParseNode) GetTimeOnlyValue() (*absser.TimeOnly, error)
GetTimeOnlyValue returns a TimeOnly value from the nodes.
func (*FormParseNode) GetTimeValue ¶
func (n *FormParseNode) GetTimeValue() (*time.Time, error)
GetTimeValue returns a Time value from the nodes.
func (*FormParseNode) GetUUIDValue ¶
func (n *FormParseNode) GetUUIDValue() (*uuid.UUID, error)
GetUUIDValue returns a UUID value from the nodes.
func (*FormParseNode) SetOnAfterAssignFieldValues ¶ added in v0.3.0
func (n *FormParseNode) SetOnAfterAssignFieldValues(action absser.ParsableAction) error
func (*FormParseNode) SetOnBeforeAssignFieldValues ¶ added in v0.3.0
func (n *FormParseNode) SetOnBeforeAssignFieldValues(action absser.ParsableAction) error
type FormParseNodeFactory ¶
type FormParseNodeFactory struct { }
FormParseNodeFactory is a ParseNodeFactory implementation for URI form encoded
func NewFormParseNodeFactory ¶
func NewFormParseNodeFactory() *FormParseNodeFactory
Creates a new FormParseNodeFactory
func (*FormParseNodeFactory) GetRootParseNode ¶
func (f *FormParseNodeFactory) GetRootParseNode(contentType string, content []byte) (absser.ParseNode, error)
GetRootParseNode return a new ParseNode instance that is the root of the content
func (*FormParseNodeFactory) GetValidContentType ¶
func (f *FormParseNodeFactory) GetValidContentType() (string, error)
GetValidContentType returns the content type this factory's parse nodes can deserialize.
type FormSerializationWriter ¶
type FormSerializationWriter struct {
// contains filtered or unexported fields
}
FormSerializationWriter implements SerializationWriter for URI form encoded.
func NewFormSerializationWriter ¶
func NewFormSerializationWriter() *FormSerializationWriter
NewFormSerializationWriter creates a new instance of the FormSerializationWriter.
func (*FormSerializationWriter) Close ¶
func (w *FormSerializationWriter) Close() error
Close clears the internal buffer.
func (*FormSerializationWriter) GetOnAfterObjectSerialization ¶ added in v0.3.0
func (w *FormSerializationWriter) GetOnAfterObjectSerialization() absser.ParsableAction
func (*FormSerializationWriter) GetOnBeforeSerialization ¶ added in v0.3.0
func (w *FormSerializationWriter) GetOnBeforeSerialization() absser.ParsableAction
func (*FormSerializationWriter) GetOnStartObjectSerialization ¶ added in v0.3.0
func (w *FormSerializationWriter) GetOnStartObjectSerialization() absser.ParsableWriter
func (*FormSerializationWriter) GetSerializedContent ¶
func (w *FormSerializationWriter) GetSerializedContent() ([]byte, error)
GetSerializedContent returns the resulting byte array from the serialization writer.
func (*FormSerializationWriter) SetOnAfterObjectSerialization ¶ added in v0.3.0
func (w *FormSerializationWriter) SetOnAfterObjectSerialization(action absser.ParsableAction) error
func (*FormSerializationWriter) SetOnBeforeSerialization ¶ added in v0.3.0
func (w *FormSerializationWriter) SetOnBeforeSerialization(action absser.ParsableAction) error
func (*FormSerializationWriter) SetOnStartObjectSerialization ¶ added in v0.3.0
func (w *FormSerializationWriter) SetOnStartObjectSerialization(writer absser.ParsableWriter) error
func (*FormSerializationWriter) WriteAdditionalData ¶
func (w *FormSerializationWriter) WriteAdditionalData(value map[string]interface{}) error
WriteAdditionalData writes additional data to underlying the byte array.
func (*FormSerializationWriter) WriteAnyValue ¶
func (w *FormSerializationWriter) WriteAnyValue(key string, value interface{}) error
WriteAnyValue an unknown value as a parameter.
func (*FormSerializationWriter) WriteBoolValue ¶
func (w *FormSerializationWriter) WriteBoolValue(key string, value *bool) error
WriteBoolValue writes a Bool value to underlying the byte array.
func (*FormSerializationWriter) WriteByteArrayValue ¶
func (w *FormSerializationWriter) WriteByteArrayValue(key string, value []byte) error
WriteByteArrayValue writes a ByteArray value to underlying the byte array.
func (*FormSerializationWriter) WriteByteValue ¶
func (w *FormSerializationWriter) WriteByteValue(key string, value *byte) error
WriteByteValue writes a Byte value to underlying the byte array.
func (*FormSerializationWriter) WriteCollectionOfBoolValues ¶
func (w *FormSerializationWriter) WriteCollectionOfBoolValues(key string, collection []bool) error
WriteCollectionOfBoolValues writes a collection of Bool values to underlying the byte array.
func (*FormSerializationWriter) WriteCollectionOfByteValues ¶
func (w *FormSerializationWriter) WriteCollectionOfByteValues(key string, collection []byte) error
WriteCollectionOfByteValues writes a collection of Byte values to underlying the byte array.
func (*FormSerializationWriter) WriteCollectionOfDateOnlyValues ¶
func (w *FormSerializationWriter) WriteCollectionOfDateOnlyValues(key string, collection []absser.DateOnly) error
WriteCollectionOfDateOnlyValues writes a collection of DateOnly values to underlying the byte array.
func (*FormSerializationWriter) WriteCollectionOfFloat32Values ¶
func (w *FormSerializationWriter) WriteCollectionOfFloat32Values(key string, collection []float32) error
WriteCollectionOfFloat32Values writes a collection of Float32 values to underlying the byte array.
func (*FormSerializationWriter) WriteCollectionOfFloat64Values ¶
func (w *FormSerializationWriter) WriteCollectionOfFloat64Values(key string, collection []float64) error
WriteCollectionOfFloat64Values writes a collection of Float64 values to underlying the byte array.
func (*FormSerializationWriter) WriteCollectionOfISODurationValues ¶
func (w *FormSerializationWriter) WriteCollectionOfISODurationValues(key string, collection []absser.ISODuration) error
WriteCollectionOfISODurationValues writes a collection of ISODuration values to underlying the byte array.
func (*FormSerializationWriter) WriteCollectionOfInt32Values ¶
func (w *FormSerializationWriter) WriteCollectionOfInt32Values(key string, collection []int32) error
WriteCollectionOfInt32Values writes a collection of Int32 values to underlying the byte array.
func (*FormSerializationWriter) WriteCollectionOfInt64Values ¶
func (w *FormSerializationWriter) WriteCollectionOfInt64Values(key string, collection []int64) error
WriteCollectionOfInt64Values writes a collection of Int64 values to underlying the byte array.
func (*FormSerializationWriter) WriteCollectionOfInt8Values ¶
func (w *FormSerializationWriter) WriteCollectionOfInt8Values(key string, collection []int8) error
WriteCollectionOfInt8Values writes a collection of int8 values to underlying the byte array.
func (*FormSerializationWriter) WriteCollectionOfObjectValues ¶
func (w *FormSerializationWriter) WriteCollectionOfObjectValues(key string, collection []absser.Parsable) error
WriteCollectionOfObjectValues writes a collection of Parsable values to underlying the byte array.
func (*FormSerializationWriter) WriteCollectionOfStringValues ¶
func (w *FormSerializationWriter) WriteCollectionOfStringValues(key string, collection []string) error
WriteCollectionOfStringValues writes a collection of String values to underlying the byte array.
func (*FormSerializationWriter) WriteCollectionOfTimeOnlyValues ¶
func (w *FormSerializationWriter) WriteCollectionOfTimeOnlyValues(key string, collection []absser.TimeOnly) error
WriteCollectionOfTimeOnlyValues writes a collection of TimeOnly values to underlying the byte array.
func (*FormSerializationWriter) WriteCollectionOfTimeValues ¶
func (w *FormSerializationWriter) WriteCollectionOfTimeValues(key string, collection []time.Time) error
WriteCollectionOfTimeValues writes a collection of Time values to underlying the byte array.
func (*FormSerializationWriter) WriteCollectionOfUUIDValues ¶
func (w *FormSerializationWriter) WriteCollectionOfUUIDValues(key string, collection []uuid.UUID) error
WriteCollectionOfUUIDValues writes a collection of UUID values to underlying the byte array.
func (*FormSerializationWriter) WriteDateOnlyValue ¶
func (w *FormSerializationWriter) WriteDateOnlyValue(key string, value *absser.DateOnly) error
WriteDateOnlyValue writes a DateOnly value to underlying the byte array.
func (*FormSerializationWriter) WriteFloat32Value ¶
func (w *FormSerializationWriter) WriteFloat32Value(key string, value *float32) error
WriteFloat32Value writes a Float32 value to underlying the byte array.
func (*FormSerializationWriter) WriteFloat64Value ¶
func (w *FormSerializationWriter) WriteFloat64Value(key string, value *float64) error
WriteFloat64Value writes a Float64 value to underlying the byte array.
func (*FormSerializationWriter) WriteISODurationValue ¶
func (w *FormSerializationWriter) WriteISODurationValue(key string, value *absser.ISODuration) error
WriteISODurationValue writes a ISODuration value to underlying the byte array.
func (*FormSerializationWriter) WriteInt32Value ¶
func (w *FormSerializationWriter) WriteInt32Value(key string, value *int32) error
WriteInt32Value writes a Int32 value to underlying the byte array.
func (*FormSerializationWriter) WriteInt64Value ¶
func (w *FormSerializationWriter) WriteInt64Value(key string, value *int64) error
WriteInt64Value writes a Int64 value to underlying the byte array.
func (*FormSerializationWriter) WriteInt8Value ¶
func (w *FormSerializationWriter) WriteInt8Value(key string, value *int8) error
WriteInt8Value writes a int8 value to underlying the byte array.
func (*FormSerializationWriter) WriteNullValue ¶ added in v0.3.0
func (w *FormSerializationWriter) WriteNullValue(key string) error
func (*FormSerializationWriter) WriteObjectValue ¶
func (w *FormSerializationWriter) WriteObjectValue(key string, item absser.Parsable, additionalValuesToMerge ...absser.Parsable) error
WriteObjectValue writes a Parsable value to underlying the byte array.
func (*FormSerializationWriter) WriteStringValue ¶
func (w *FormSerializationWriter) WriteStringValue(key string, value *string) error
WriteStringValue writes a String value to underlying the byte array.
func (*FormSerializationWriter) WriteTimeOnlyValue ¶
func (w *FormSerializationWriter) WriteTimeOnlyValue(key string, value *absser.TimeOnly) error
WriteTimeOnlyValue writes a TimeOnly value to underlying the byte array.
func (*FormSerializationWriter) WriteTimeValue ¶
func (w *FormSerializationWriter) WriteTimeValue(key string, value *time.Time) error
WriteTimeValue writes a Time value to underlying the byte array.
func (*FormSerializationWriter) WriteUUIDValue ¶
func (w *FormSerializationWriter) WriteUUIDValue(key string, value *uuid.UUID) error
WriteUUIDValue writes a UUID value to underlying the byte array.
type FormSerializationWriterFactory ¶
type FormSerializationWriterFactory struct { }
FormSerializationWriterFactory implements SerializationWriterFactory for URI form encoded.
func NewFormSerializationWriterFactory ¶
func NewFormSerializationWriterFactory() *FormSerializationWriterFactory
NewFormSerializationWriterFactory creates a new instance of the FormSerializationWriterFactory.
func (*FormSerializationWriterFactory) GetSerializationWriter ¶
func (f *FormSerializationWriterFactory) GetSerializationWriter(contentType string) (absser.SerializationWriter, error)
GetSerializationWriter returns the relevant SerializationWriter instance for the given content type
func (*FormSerializationWriterFactory) GetValidContentType ¶
func (f *FormSerializationWriterFactory) GetValidContentType() (string, error)
GetValidContentType returns the valid content type for the SerializationWriterFactoryRegistry