Documentation ¶
Index ¶
- func DbCommandToBaseCommand(dbCmd *Command) (comby.Command, error)
- func DbCommandsToBaseCommands(dbCommands []*Command) ([]comby.Command, error)
- func DbEventToBaseEvent(dbEvent *Event) (comby.Event, error)
- func DbEventsToBaseEvents(dbEvents []*Event) ([]comby.Event, error)
- func Deserialize(dataBytes []byte, dst interface{}) error
- func Serialize(src interface{}) ([]byte, error)
- type Command
- type Event
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DbCommandToBaseCommand ¶
func DbEventToBaseEvent ¶
func DbEventsToBaseEvents ¶
func Deserialize ¶
Types ¶
type Command ¶
type Command struct { // system fields ID sql.NullInt64 // fields InstanceId int64 `json:"instance_id"` Uuid string `json:"uuid"` TenantUuid string `json:"tenant_uuid"` Domain string `json:"domain"` CreatedAt int64 `json:"created_at"` DataType string `json:"data_type"` DataBytes string `json:"data_bytes"` ReqCtx string `json:"req_ctx"` }
func BaseCommandToDbCommand ¶
type Event ¶
type Event struct { // system fields ID sql.NullInt64 // fields InstanceId int64 `json:"instance_id"` Uuid string `json:"uuid"` TenantUuid string `json:"tenant_uuid"` CommandUuid string `json:"command_uuid"` Domain string `json:"domain"` AggregateUuid string `json:"aggregate_uuid"` Version int64 `json:"version"` CreatedAt int64 `json:"created_at"` DataType string `json:"data_type"` DataBytes string `json:"data_bytes"` }
Click to show internal directories.
Click to hide internal directories.