spec

package
v0.0.0-...-baedc86 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type ArrayFields

type ArrayFields struct {
	IntArrayField    []int    `json:"int_array_field"`
	StringArrayField []string `json:"string_array_field"`
}

type Choice

type Choice string
const (
	ChoiceFirstChoice  Choice = "FIRST_CHOICE"
	ChoiceSecondChoice Choice = "SECOND_CHOICE"
	ChoiceThirdChoice  Choice = "THIRD_CHOICE"
)

func (*Choice) UnmarshalJSON

func (self *Choice) UnmarshalJSON(b []byte) error

type EnumFields

type EnumFields struct {
	EnumField Choice `json:"enum_field"`
}

type MapFields

type MapFields struct {
	IntMapField    map[string]int    `json:"int_map_field"`
	StringMapField map[string]string `json:"string_map_field"`
}

type Message

type Message struct {
	Field int `json:"field"`
}

type Nested

type Nested struct {
	Field string `json:"field"`
}

type NonNumericFields

type NonNumericFields struct {
	BooleanField  bool           `json:"boolean_field"`
	StringField   string         `json:"string_field"`
	UuidField     uuid.UUID      `json:"uuid_field"`
	DateField     civil.Date     `json:"date_field"`
	DatetimeField civil.DateTime `json:"datetime_field"`
}

type NumericFields

type NumericFields struct {
	IntField     int             `json:"int_field"`
	LongField    int64           `json:"long_field"`
	FloatField   float32         `json:"float_field"`
	DoubleField  float64         `json:"double_field"`
	DecimalField decimal.Decimal `json:"decimal_field"`
}

type OptionalFields

type OptionalFields struct {
	IntOptionField    *int    `json:"int_option_field"`
	StringOptionField *string `json:"string_option_field"`
}

type OrderCanceled

type OrderCanceled struct {
	Id uuid.UUID `json:"id"`
}

type OrderChanged

type OrderChanged struct {
	Id       uuid.UUID `json:"id"`
	Quantity int       `json:"quantity"`
}

type OrderCreated

type OrderCreated struct {
	Id       uuid.UUID `json:"id"`
	Sku      string    `json:"sku"`
	Quantity int       `json:"quantity"`
}

type OrderEvent

type OrderEvent struct {
	Created  *OrderCreated  `json:"created,omitempty"`
	Changed  *OrderChanged  `json:"changed,omitempty"`
	Canceled *OrderCanceled `json:"canceled,omitempty"`
}

type Parent

type Parent struct {
	Field  string `json:"field"`
	Nested Nested `json:"nested"`
}

type RawJsonField

type RawJsonField struct {
	JsonField json.RawMessage `json:"json_field"`
}

Jump to

Keyboard shortcuts

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