Documentation ¶
Index ¶
- type Union
- func (u *Union) Accept(v UnionVisitor) error
- func (u *Union) AcceptFuncs(oneFunc func(api.Struct1) error, twoFunc func(api1.Struct2) error, ...) error
- func (u *Union) AcceptWithContext(ctx context.Context, v UnionVisitorWithContext) error
- func (u *Union) ErrorOnUnknown(typeName string) error
- func (u Union) MarshalJSON() ([]byte, error)
- func (u Union) MarshalYAML() (interface{}, error)
- func (u *Union) OneNoopSuccess(api.Struct1) error
- func (u *Union) TwoNoopSuccess(api1.Struct2) error
- func (u *Union) UnmarshalJSON(data []byte) error
- func (u *Union) UnmarshalYAML(unmarshal func(interface{}) error) error
- type UnionVisitor
- type UnionVisitorWithContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Union ¶
type Union struct {
// contains filtered or unexported fields
}
func NewUnionFromOne ¶
func NewUnionFromTwo ¶
func (*Union) Accept ¶
func (u *Union) Accept(v UnionVisitor) error
func (*Union) AcceptFuncs ¶
func (*Union) AcceptWithContext ¶
func (u *Union) AcceptWithContext(ctx context.Context, v UnionVisitorWithContext) error
func (*Union) ErrorOnUnknown ¶
func (Union) MarshalJSON ¶
func (Union) MarshalYAML ¶
func (*Union) UnmarshalJSON ¶
func (*Union) UnmarshalYAML ¶
type UnionVisitor ¶
Click to show internal directories.
Click to hide internal directories.