model

package
v0.4.7-alpha20 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: Apache-2.0 Imports: 0 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	EventTypeList    = "EventTypeList"
	ActionTypeList   = "ActionTypeList"
	PropertyTypeList = "PropertyTypeList"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type APPModel

type APPModel struct {
	LogPath     string
	LogSaveName string
	LogFileExt  string
	DBPath      string
}

type Action

type Action struct {
	ID         uint              `gorm:"primaryKey"`
	SourceID   string            `gorm:"index"`
	Name       string            `gorm:"index"`
	Properties map[string]string `gorm:"foreignKey:Id"`
	Timestamp  int64             `gorm:"autoCreateTime:milli"`
}

type ActionType

type ActionType struct {
	SourceID         string         `gorm:"primaryKey"`
	Name             string         `gorm:"primaryKey"`
	PropertyTypeList []PropertyType `gorm:"many2many:action_type_property_type;"`
}

type CommonModel

type CommonModel struct {
	RuntimePath string
}

type Event

type Event struct {
	ID         uint              `gorm:"primaryKey"`
	SourceID   string            `gorm:"index"`
	Name       string            `gorm:"index"`
	Properties map[string]string `gorm:"foreignKey:Id"`
	Timestamp  int64             `gorm:"autoCreateTime:milli"`
	UUID       string            `json:"uuid,omitempty"`
}

type EventType

type EventType struct {
	SourceID         string         `gorm:"primaryKey"`
	Name             string         `gorm:"primaryKey"`
	PropertyTypeList []PropertyType `gorm:"many2many:event_type_property_type;"`
}

type GenericType

type GenericType struct {
	SourceID string `gorm:"primaryKey"`
	Name     string `gorm:"primaryKey"`
}

type PropertyType

type PropertyType struct {
	Name string `gorm:"primaryKey"`
}

Jump to

Keyboard shortcuts

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