Documentation
¶
Index ¶
- type A
- func (s *A) Decode(d *jx.Decoder) error
- func (s A) Encode(e *jx.Encoder)
- func (s A) GetALeaf() (v ALeaf, ok bool)
- func (s A) GetARecursive() (v ARecursive, ok bool)
- func (s A) IsALeaf() bool
- func (s A) IsARecursive() bool
- func (s A) MarshalJSON() ([]byte, error)
- func (s *A) SetALeaf(v ALeaf)
- func (s *A) SetARecursive(v ARecursive)
- func (s *A) UnmarshalJSON(data []byte) error
- func (s A) Validate() error
- type ALeaf
- type ALeafKind
- func (ALeafKind) AllValues() []ALeafKind
- func (s *ALeafKind) Decode(d *jx.Decoder) error
- func (s ALeafKind) Encode(e *jx.Encoder)
- func (s ALeafKind) MarshalJSON() ([]byte, error)
- func (s ALeafKind) MarshalText() ([]byte, error)
- func (s *ALeafKind) UnmarshalJSON(data []byte) error
- func (s *ALeafKind) UnmarshalText(data []byte) error
- func (s ALeafKind) Validate() error
- type ARecursive
- type AType
- type B
- type ProbeNoContent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type A ¶
type A struct {
// Type selects the active sum variant, switch on this field.
Type AType
ARecursive ARecursive
ALeaf ALeaf
}
Ref: #/components/schemas/A A represents sum type.
func NewARecursiveA ¶
func NewARecursiveA(v ARecursive) A
NewARecursiveA returns new A from ARecursive.
func (A) GetARecursive ¶
func (s A) GetARecursive() (v ARecursive, ok bool)
GetARecursive returns ARecursive and true boolean if A is ARecursive.
func (A) IsARecursive ¶
IsARecursive reports whether A is ARecursive.
func (A) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*A) SetARecursive ¶
func (s *A) SetARecursive(v ARecursive)
SetARecursive sets A to ARecursive.
func (*A) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type ALeaf ¶
type ALeaf struct {
Kind ALeafKind `json:"kind"`
}
Ref: #/components/schemas/ALeaf
func (*ALeaf) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*ALeaf) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type ALeafKind ¶
type ALeafKind string
const (
ALeafKindLeaf ALeafKind = "leaf"
)
func (ALeafKind) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (ALeafKind) MarshalText ¶
MarshalText implements encoding.TextMarshaler.
func (*ALeafKind) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ALeafKind) UnmarshalText ¶
UnmarshalText implements encoding.TextUnmarshaler.
type ARecursive ¶
type ARecursive struct {
B *B `json:"b"`
}
Ref: #/components/schemas/ARecursive
func (*ARecursive) Decode ¶
func (s *ARecursive) Decode(d *jx.Decoder) error
Decode decodes ARecursive from json.
func (*ARecursive) Encode ¶
func (s *ARecursive) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ARecursive) MarshalJSON ¶
func (s *ARecursive) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ARecursive) UnmarshalJSON ¶
func (s *ARecursive) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ARecursive) Validate ¶
func (s *ARecursive) Validate() error
type B ¶
type B struct {
A A `json:"a"`
}
Ref: #/components/schemas/B
func (*B) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*B) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.