Help us shape the future of Go! Take the 2026 Go Developer Survey

internal

package
v1.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MockEntityFactory

func MockEntityFactory(parseNode absser.ParseNode) (absser.Parsable, error)

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 MockEntityAble interface {
	absser.Parsable
}

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) GetInt8Value

func (e *MockParseNode) GetInt8Value() (*int8, error)

func (*MockParseNode) GetInt32Value

func (e *MockParseNode) GetInt32Value() (*int32, error)

func (*MockParseNode) GetInt64Value

func (e *MockParseNode) GetInt64Value() (*int64, 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 (e *MockParseNodeFactory) GetRootParseNode(contentType string, content []byte) (absser.ParseNode, error)

func (*MockParseNodeFactory) GetValidContentType

func (e *MockParseNodeFactory) GetValidContentType() (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL