entity

package
v1.22.3 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 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 `pg:"?db_schema.attributes" json:"-"`
	Id         int32
	Path       string
	Type       string
	RecordType string
	CreatedAt  time.Time
	UpdatedAt  time.Time
}

type BaseNotification

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

type BaseRecord

type BaseRecord struct {
	Id         int64
	ExternalId string `valid:"required~Required"`
	Version    int64  `valid:"required~Required"`
	Type       string
	Delete     bool
	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
}

nolint:unused

type DataTechRecord

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

nolint:unused

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
}

nolint:unused

type TransitDataTechRecord

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

nolint:unused

type TransitNotification

type TransitNotification struct {
	*BaseNotification
	Direct     map[int32]interface{} `json:",omitempty"`
	Data       json.RawMessage
	CustomData json.RawMessage
}

Jump to

Keyboard shortcuts

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