Documentation
¶
Overview ¶
Package semantics defines implementation-specific serialization profiles.
Index ¶
- type ContractCertainty
- type CustomMethods
- type Finding
- type GenericProfile
- func (p GenericProfile) Available() bool
- func (p GenericProfile) Compare(Profile) []SemanticDifference
- func (p GenericProfile) ID() string
- func (p GenericProfile) Namespace() string
- func (p GenericProfile) ResolveStruct(*contract.StructContract) (*ResolvedSurface, error)
- func (p GenericProfile) ValidateField(*contract.FieldContract) []Finding
- func (p GenericProfile) Version() string
- type Profile
- type Registry
- type ResolvedField
- type ResolvedSurface
- type SemanticDifference
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContractCertainty ¶
type ContractCertainty string
const ( CertaintyExact ContractCertainty = "exact" CertaintyPartial ContractCertainty = "partial" CertaintyOpaque ContractCertainty = "opaque" )
type CustomMethods ¶
type GenericProfile ¶
type GenericProfile string
func (GenericProfile) Available ¶
func (p GenericProfile) Available() bool
func (GenericProfile) Compare ¶
func (p GenericProfile) Compare(Profile) []SemanticDifference
func (GenericProfile) ID ¶
func (p GenericProfile) ID() string
func (GenericProfile) Namespace ¶
func (p GenericProfile) Namespace() string
func (GenericProfile) ResolveStruct ¶
func (p GenericProfile) ResolveStruct(*contract.StructContract) (*ResolvedSurface, error)
func (GenericProfile) ValidateField ¶
func (p GenericProfile) ValidateField(*contract.FieldContract) []Finding
func (GenericProfile) Version ¶
func (p GenericProfile) Version() string
type Profile ¶
type Profile interface {
ID() string
Namespace() string
Version() string
Available() bool
ResolveStruct(*contract.StructContract) (*ResolvedSurface, error)
ValidateField(*contract.FieldContract) []Finding
Compare(Profile) []SemanticDifference
}
type Registry ¶
type Registry struct {
Toolchain string
JSONV2Installed bool
JSONV2Active bool
// contains filtered or unexported fields
}
func NewRegistry ¶
func NewRegistry() Registry
type ResolvedField ¶
type ResolvedSurface ¶
type ResolvedSurface struct {
Profile string
Namespace string
Certainty ContractCertainty
Reason string
Fields []ResolvedField
CaseSensitiveDecode bool
Available bool
Toolchain string
CustomMethods CustomMethods
}
Click to show internal directories.
Click to hide internal directories.