Documentation
¶
Index ¶
- func MockEntityFactory(parseNode absser.ParseNode) (absser.Parsable, error)
- type MockEntity
- type MockEntityAble
- type MockParseNode
- func (e *MockParseNode) GetBoolValue() (*bool, error)
- func (e *MockParseNode) GetByteArrayValue() ([]byte, error)
- func (e *MockParseNode) GetByteValue() (*byte, error)
- func (e *MockParseNode) GetChildNode(index string) (absser.ParseNode, error)
- func (e *MockParseNode) GetCollectionOfEnumValues(parser absser.EnumFactory) ([]interface{}, error)
- func (e *MockParseNode) GetCollectionOfObjectValues(ctor absser.ParsableFactory) ([]absser.Parsable, error)
- func (e *MockParseNode) GetCollectionOfPrimitiveValues(targetType string) ([]interface{}, error)
- func (e *MockParseNode) GetDateOnlyValue() (*absser.DateOnly, error)
- func (e *MockParseNode) GetEnumValue(parser absser.EnumFactory) (interface{}, error)
- func (e *MockParseNode) GetFloat32Value() (*float32, error)
- func (e *MockParseNode) GetFloat64Value() (*float64, error)
- func (e *MockParseNode) GetISODurationValue() (*absser.ISODuration, error)
- func (e *MockParseNode) GetInt32Value() (*int32, error)
- func (e *MockParseNode) GetInt64Value() (*int64, error)
- func (e *MockParseNode) GetInt8Value() (*int8, error)
- func (e *MockParseNode) GetObjectValue(ctor absser.ParsableFactory) (absser.Parsable, error)
- func (e *MockParseNode) GetOnAfterAssignFieldValues() absser.ParsableAction
- func (e *MockParseNode) GetOnBeforeAssignFieldValues() absser.ParsableAction
- func (*MockParseNode) GetRawValue() (interface{}, error)
- func (e *MockParseNode) GetStringValue() (*string, error)
- func (e *MockParseNode) GetTimeOnlyValue() (*absser.TimeOnly, error)
- func (e *MockParseNode) GetTimeValue() (*time.Time, error)
- func (e *MockParseNode) GetUUIDValue() (*uuid.UUID, error)
- func (e *MockParseNode) SetOnAfterAssignFieldValues(action absser.ParsableAction) error
- func (e *MockParseNode) SetOnBeforeAssignFieldValues(action absser.ParsableAction) error
- type MockParseNodeFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MockEntity ¶
type MockEntity struct {
}
func (*MockEntity) GetFieldDeserializers ¶
func (e *MockEntity) GetFieldDeserializers() map[string]func(absser.ParseNode) error
func (*MockEntity) Serialize ¶
func (e *MockEntity) Serialize(writer absser.SerializationWriter) error
type MockEntityAble ¶
type MockParseNode ¶
type MockParseNode struct {
}
func (*MockParseNode) GetBoolValue ¶
func (e *MockParseNode) GetBoolValue() (*bool, error)
func (*MockParseNode) GetByteArrayValue ¶
func (e *MockParseNode) GetByteArrayValue() ([]byte, error)
func (*MockParseNode) GetByteValue ¶
func (e *MockParseNode) GetByteValue() (*byte, error)
func (*MockParseNode) GetChildNode ¶
func (e *MockParseNode) GetChildNode(index string) (absser.ParseNode, error)
func (*MockParseNode) GetCollectionOfEnumValues ¶
func (e *MockParseNode) GetCollectionOfEnumValues(parser absser.EnumFactory) ([]interface{}, error)
func (*MockParseNode) GetCollectionOfObjectValues ¶
func (e *MockParseNode) GetCollectionOfObjectValues(ctor absser.ParsableFactory) ([]absser.Parsable, error)
func (*MockParseNode) GetCollectionOfPrimitiveValues ¶
func (e *MockParseNode) GetCollectionOfPrimitiveValues(targetType string) ([]interface{}, error)
func (*MockParseNode) GetDateOnlyValue ¶
func (e *MockParseNode) GetDateOnlyValue() (*absser.DateOnly, error)
func (*MockParseNode) GetEnumValue ¶
func (e *MockParseNode) GetEnumValue(parser absser.EnumFactory) (interface{}, error)
func (*MockParseNode) GetFloat32Value ¶
func (e *MockParseNode) GetFloat32Value() (*float32, error)
func (*MockParseNode) GetFloat64Value ¶
func (e *MockParseNode) GetFloat64Value() (*float64, error)
func (*MockParseNode) GetISODurationValue ¶
func (e *MockParseNode) GetISODurationValue() (*absser.ISODuration, error)
func (*MockParseNode) GetInt32Value ¶
func (e *MockParseNode) GetInt32Value() (*int32, error)
func (*MockParseNode) GetInt64Value ¶
func (e *MockParseNode) GetInt64Value() (*int64, error)
func (*MockParseNode) GetInt8Value ¶
func (e *MockParseNode) GetInt8Value() (*int8, error)
func (*MockParseNode) GetObjectValue ¶
func (e *MockParseNode) GetObjectValue(ctor absser.ParsableFactory) (absser.Parsable, error)
func (*MockParseNode) GetOnAfterAssignFieldValues ¶ added in v0.14.0
func (e *MockParseNode) GetOnAfterAssignFieldValues() absser.ParsableAction
func (*MockParseNode) GetOnBeforeAssignFieldValues ¶ added in v0.14.0
func (e *MockParseNode) GetOnBeforeAssignFieldValues() absser.ParsableAction
func (*MockParseNode) GetRawValue ¶ added in v0.9.0
func (*MockParseNode) GetRawValue() (interface{}, error)
func (*MockParseNode) GetStringValue ¶
func (e *MockParseNode) GetStringValue() (*string, error)
func (*MockParseNode) GetTimeOnlyValue ¶
func (e *MockParseNode) GetTimeOnlyValue() (*absser.TimeOnly, error)
func (*MockParseNode) GetTimeValue ¶
func (e *MockParseNode) GetTimeValue() (*time.Time, error)
func (*MockParseNode) GetUUIDValue ¶
func (e *MockParseNode) GetUUIDValue() (*uuid.UUID, error)
func (*MockParseNode) SetOnAfterAssignFieldValues ¶ added in v0.14.0
func (e *MockParseNode) SetOnAfterAssignFieldValues(action absser.ParsableAction) error
func (*MockParseNode) SetOnBeforeAssignFieldValues ¶ added in v0.14.0
func (e *MockParseNode) SetOnBeforeAssignFieldValues(action absser.ParsableAction) error
type MockParseNodeFactory ¶
type MockParseNodeFactory struct {
}
func (*MockParseNodeFactory) GetRootParseNode ¶
func (*MockParseNodeFactory) GetValidContentType ¶
func (e *MockParseNodeFactory) GetValidContentType() (string, error)
Click to show internal directories.
Click to hide internal directories.