entity

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2019 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RecordsTableName     = "data_records"
	TechRecordsTableName = "data_tech_records"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Attribute

type Attribute struct {
	TableName string `sql:"?db_schema.attributes" json:"-"`
	Id        int32
	Path      string
	Type      string
	CreatedAt time.Time
	UpdatedAt time.Time
}

type BaseNotification

type BaseNotification struct {
	ExternalId  string
	OperationId string
	Version     int64
	IsTech      bool
	Delta       diff.Delta
}

type BaseRecord

type BaseRecord struct {
	Id         int64
	ExternalId string `valid:"required~Required"`
	Version    int64  `valid:"required~Required"`
	UpdatedAt  time.Time
	CreatedAt  time.Time
}

type DataRecord

type DataRecord struct {
	*BaseRecord
	Data       map[string]interface{} `valid:"required~Required"`
	CustomData map[string]interface{}
	// contains filtered or unexported fields
}

type DataTechRecord

type DataTechRecord struct {
	*DataRecord
	// contains filtered or unexported fields
}

type Notification

type Notification struct {
	*BaseNotification
	Data       map[string]interface{}
	CustomData map[string]interface{}
}

type TransitDataRecord

type TransitDataRecord struct {
	*BaseRecord
	Data       json.RawMessage `valid:"required~Required"`
	CustomData json.RawMessage
	// contains filtered or unexported fields
}

type TransitDataTechRecord

type TransitDataTechRecord struct {
	*TransitDataRecord
	// contains filtered or unexported fields
}

type TransitNotification

type TransitNotification struct {
	*BaseNotification
	Data       json.RawMessage
	CustomData json.RawMessage
}

Jump to

Keyboard shortcuts

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