api

package
v1.26.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2026 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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 NewALeafA

func NewALeafA(v ALeaf) A

NewALeafA returns new A from ALeaf.

func NewARecursiveA

func NewARecursiveA(v ARecursive) A

NewARecursiveA returns new A from ARecursive.

func (*A) Decode

func (s *A) Decode(d *jx.Decoder) error

Decode decodes A from json.

func (A) Encode

func (s A) Encode(e *jx.Encoder)

Encode encodes A as json.

func (A) GetALeaf

func (s A) GetALeaf() (v ALeaf, ok bool)

GetALeaf returns ALeaf and true boolean if A is ALeaf.

func (A) GetARecursive

func (s A) GetARecursive() (v ARecursive, ok bool)

GetARecursive returns ARecursive and true boolean if A is ARecursive.

func (A) IsALeaf

func (s A) IsALeaf() bool

IsALeaf reports whether A is ALeaf.

func (A) IsARecursive

func (s A) IsARecursive() bool

IsARecursive reports whether A is ARecursive.

func (A) MarshalJSON

func (s A) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*A) SetALeaf

func (s *A) SetALeaf(v ALeaf)

SetALeaf sets A to ALeaf.

func (*A) SetARecursive

func (s *A) SetARecursive(v ARecursive)

SetARecursive sets A to ARecursive.

func (*A) UnmarshalJSON

func (s *A) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (A) Validate

func (s A) Validate() error

type ALeaf

type ALeaf struct {
	Kind ALeafKind `json:"kind"`
}

Ref: #/components/schemas/ALeaf

func (*ALeaf) Decode

func (s *ALeaf) Decode(d *jx.Decoder) error

Decode decodes ALeaf from json.

func (*ALeaf) Encode

func (s *ALeaf) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ALeaf) GetKind

func (s *ALeaf) GetKind() ALeafKind

GetKind returns the value of Kind.

func (*ALeaf) MarshalJSON

func (s *ALeaf) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ALeaf) SetKind

func (s *ALeaf) SetKind(val ALeafKind)

SetKind sets the value of Kind.

func (*ALeaf) UnmarshalJSON

func (s *ALeaf) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ALeaf) Validate

func (s *ALeaf) Validate() error

type ALeafKind

type ALeafKind string
const (
	ALeafKindLeaf ALeafKind = "leaf"
)

func (ALeafKind) AllValues

func (ALeafKind) AllValues() []ALeafKind

AllValues returns all ALeafKind values.

func (*ALeafKind) Decode

func (s *ALeafKind) Decode(d *jx.Decoder) error

Decode decodes ALeafKind from json.

func (ALeafKind) Encode

func (s ALeafKind) Encode(e *jx.Encoder)

Encode encodes ALeafKind as json.

func (ALeafKind) MarshalJSON

func (s ALeafKind) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ALeafKind) MarshalText

func (s ALeafKind) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ALeafKind) UnmarshalJSON

func (s *ALeafKind) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ALeafKind) UnmarshalText

func (s *ALeafKind) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ALeafKind) Validate

func (s ALeafKind) Validate() error

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

func (s *ARecursive) GetB() *B

GetB returns the value of B.

func (*ARecursive) MarshalJSON

func (s *ARecursive) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ARecursive) SetB

func (s *ARecursive) SetB(val *B)

SetB sets the value of B.

func (*ARecursive) UnmarshalJSON

func (s *ARecursive) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ARecursive) Validate

func (s *ARecursive) Validate() error

type AType

type AType string

AType is oneOf type of A.

const (
	ARecursiveA AType = "ARecursive"
	ALeafA      AType = "ALeaf"
)

Possible values for AType.

type B

type B struct {
	A A `json:"a"`
}

Ref: #/components/schemas/B

func (*B) Decode

func (s *B) Decode(d *jx.Decoder) error

Decode decodes B from json.

func (*B) Encode

func (s *B) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*B) GetA

func (s *B) GetA() A

GetA returns the value of A.

func (*B) MarshalJSON

func (s *B) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*B) SetA

func (s *B) SetA(val A)

SetA sets the value of A.

func (*B) UnmarshalJSON

func (s *B) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*B) Validate

func (s *B) Validate() error

type ProbeNoContent

type ProbeNoContent struct{}

ProbeNoContent is response for Probe operation.

Jump to

Keyboard shortcuts

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