Documentation
¶
Index ¶
- Constants
- type Accept
- type Color
- type MappyContract
- func (t MappyContract) Archive(contractID string) *model.ExerciseCommand
- func (t MappyContract) ArchiveWithPackageID(contractID string, packageID string) *model.ExerciseCommand
- func (t MappyContract) CreateCommand() *model.CreateCommand
- func (t MappyContract) CreateCommandWithPackageID(packageID string) *model.CreateCommand
- func (t MappyContract) GetTemplateID() string
- func (t MappyContract) GetTemplateIDWithPackageID(packageID string) string
- func (t MappyContract) MarshalJSON() ([]byte, error)
- func (t *MappyContract) UnmarshalJSON(data []byte) error
- type MyPair
- type OneOfEverything
- func (t OneOfEverything) Accept(contractID string, args Accept) *model.ExerciseCommand
- func (t OneOfEverything) AcceptWithPackageID(contractID string, packageID string, args Accept) *model.ExerciseCommand
- func (t OneOfEverything) Archive(contractID string) *model.ExerciseCommand
- func (t OneOfEverything) ArchiveWithPackageID(contractID string, packageID string) *model.ExerciseCommand
- func (t OneOfEverything) CreateCommand() *model.CreateCommand
- func (t OneOfEverything) CreateCommandWithPackageID(packageID string) *model.CreateCommand
- func (t OneOfEverything) GetTemplateID() string
- func (t OneOfEverything) GetTemplateIDWithPackageID(packageID string) string
- func (t OneOfEverything) MarshalJSON() ([]byte, error)
- func (t *OneOfEverything) UnmarshalJSON(data []byte) error
- type Template
- type VPair
Constants ¶
const ( PackageName = "all-kinds-of" PackageID = "6d7e83e81a0a7960eec37340f5b11e7a61606bd9161f413684bc345c3f387948" SDKVersion = "3.3.0-snapshot.20250417.0" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Accept ¶
type Accept struct {
}
Accept is a Record type
func (Accept) MarshalJSON ¶
func (*Accept) UnmarshalJSON ¶
type Color ¶
type Color string
Color is an enum type
func (Color) GetEnumConstructor ¶
func (Color) GetEnumTypeID ¶
func (Color) GetEnumTypeIDWithPackageID ¶
GetEnumTypeIDWithPackageID returns the enum type ID using the provided package ID instead of package name
func (Color) MarshalJSON ¶
func (*Color) UnmarshalJSON ¶
type MappyContract ¶
type MappyContract struct {
Operator types.PARTY `json:"operator"`
Value types.TEXTMAP `json:"value"`
}
MappyContract is a Template type
func (MappyContract) Archive ¶
func (t MappyContract) Archive(contractID string) *model.ExerciseCommand
Archive exercises the Archive choice on this MappyContract contract This method uses the package name in the template ID
func (MappyContract) ArchiveWithPackageID ¶
func (t MappyContract) ArchiveWithPackageID(contractID string, packageID string) *model.ExerciseCommand
ArchiveWithPackageID exercises the Archive choice using the provided package ID instead of package name
func (MappyContract) CreateCommand ¶
func (t MappyContract) CreateCommand() *model.CreateCommand
CreateCommand returns a CreateCommand for this template using the package name
func (MappyContract) CreateCommandWithPackageID ¶
func (t MappyContract) CreateCommandWithPackageID(packageID string) *model.CreateCommand
CreateCommandWithPackageID returns a CreateCommand using the provided package ID instead of package name
func (MappyContract) GetTemplateID ¶
func (t MappyContract) GetTemplateID() string
GetTemplateID returns the template ID for this template using the package name
func (MappyContract) GetTemplateIDWithPackageID ¶
func (t MappyContract) GetTemplateIDWithPackageID(packageID string) string
GetTemplateIDWithPackageID returns the template ID using the provided package ID instead of package name
func (MappyContract) MarshalJSON ¶
func (t MappyContract) MarshalJSON() ([]byte, error)
func (*MappyContract) UnmarshalJSON ¶
func (t *MappyContract) UnmarshalJSON(data []byte) error
type MyPair ¶
MyPair is a Record type
func (MyPair) MarshalJSON ¶
func (*MyPair) UnmarshalJSON ¶
type OneOfEverything ¶
type OneOfEverything struct {
Operator types.PARTY `json:"operator"`
SomeBoolean types.BOOL `json:"someBoolean"`
SomeInteger types.INT64 `json:"someInteger"`
SomeDecimal types.NUMERIC `json:"someDecimal"`
SomeMaybe *types.INT64 `json:"someMaybe" hex:"optional"`
SomeMaybeNot *types.INT64 `json:"someMaybeNot" hex:"optional"`
SomeText types.TEXT `json:"someText"`
SomeDate types.DATE `json:"someDate"`
SomeDatetime types.TIMESTAMP `json:"someDatetime"`
SomeSimpleList []types.INT64 `json:"someSimpleList"`
SomeSimplePair MyPair `json:"someSimplePair"`
SomeNestedPair MyPair `json:"someNestedPair"`
SomeUglyNesting VPair `json:"someUglyNesting"`
SomeMeasurement types.NUMERIC `json:"someMeasurement"`
SomeEnum Color `json:"someEnum"`
TheUnit types.UNIT `json:"theUnit"`
}
OneOfEverything is a Template type
func (OneOfEverything) Accept ¶
func (t OneOfEverything) Accept(contractID string, args Accept) *model.ExerciseCommand
Accept exercises the Accept choice on this OneOfEverything contract This method uses the package name in the template ID
func (OneOfEverything) AcceptWithPackageID ¶
func (t OneOfEverything) AcceptWithPackageID(contractID string, packageID string, args Accept) *model.ExerciseCommand
AcceptWithPackageID exercises the Accept choice using the provided package ID instead of package name
func (OneOfEverything) Archive ¶
func (t OneOfEverything) Archive(contractID string) *model.ExerciseCommand
Archive exercises the Archive choice on this OneOfEverything contract This method uses the package name in the template ID
func (OneOfEverything) ArchiveWithPackageID ¶
func (t OneOfEverything) ArchiveWithPackageID(contractID string, packageID string) *model.ExerciseCommand
ArchiveWithPackageID exercises the Archive choice using the provided package ID instead of package name
func (OneOfEverything) CreateCommand ¶
func (t OneOfEverything) CreateCommand() *model.CreateCommand
CreateCommand returns a CreateCommand for this template using the package name
func (OneOfEverything) CreateCommandWithPackageID ¶
func (t OneOfEverything) CreateCommandWithPackageID(packageID string) *model.CreateCommand
CreateCommandWithPackageID returns a CreateCommand using the provided package ID instead of package name
func (OneOfEverything) GetTemplateID ¶
func (t OneOfEverything) GetTemplateID() string
GetTemplateID returns the template ID for this template using the package name
func (OneOfEverything) GetTemplateIDWithPackageID ¶
func (t OneOfEverything) GetTemplateIDWithPackageID(packageID string) string
GetTemplateIDWithPackageID returns the template ID using the provided package ID instead of package name
func (OneOfEverything) MarshalJSON ¶
func (t OneOfEverything) MarshalJSON() ([]byte, error)
func (*OneOfEverything) UnmarshalJSON ¶
func (t *OneOfEverything) UnmarshalJSON(data []byte) error
type Template ¶
type Template interface {
CreateCommand() *model.CreateCommand
GetTemplateID() string
}
type VPair ¶
type VPair struct {
Left *any `json:"Left,omitempty"`
Right *any `json:"Right,omitempty"`
Both *VPair `json:"Both,omitempty"`
}
VPair is a variant/union type
func (VPair) GetVariantTag ¶
GetVariantTag implements types.VARIANT interface
func (VPair) GetVariantValue ¶
GetVariantValue implements types.VARIANT interface
func (VPair) MarshalJSON ¶
MarshalJSON implements custom JSON marshaling for VPair
func (*VPair) UnmarshalJSON ¶
UnmarshalJSON implements custom JSON unmarshalling for VPair