entity

package
v2.1.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2020 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonConfig

type CommonConfig struct {
	Id          string     `json:"id"`
	Name        string     `json:"name" valid:"required~Required"`
	Description string     `json:"description"`
	CreatedAt   time.Time  `json:"createdAt" sql:",null"`
	UpdatedAt   time.Time  `json:"updatedAt" sql:",null"`
	Data        ConfigData `json:"data" sql:",notnull"`
	// contains filtered or unexported fields
}

type Config

type Config struct {
	Id            string     `json:"id"`
	Name          string     `json:"name" valid:"required~Required"`
	CommonConfigs []string   `json:"commonConfigs" pg:",array"`
	Description   string     `json:"description"`
	ModuleId      string     `json:"moduleId" valid:"required~Required"`
	Version       int32      `json:"version" sql:",null"`
	Active        bool       `json:"active" sql:",null"`
	CreatedAt     time.Time  `json:"createdAt" sql:",null"`
	UpdatedAt     time.Time  `json:"updatedAt" sql:",null"`
	Data          ConfigData `json:"data" sql:",notnull"`
	// contains filtered or unexported fields
}

type ConfigData

type ConfigData map[string]interface{}

type ConfigSchema

type ConfigSchema struct {
	Id        string `json:"id"`
	Version   string
	ModuleId  string
	Schema    schema.Schema
	CreatedAt time.Time
	UpdatedAt time.Time
	// contains filtered or unexported fields
}

type Module

type Module struct {
	Id                 string    `json:"id"`
	Name               string    `json:"name" valid:"required~Required"`
	CreatedAt          time.Time `json:"createdAt" sql:",null"`
	LastConnectedAt    time.Time `json:"lastConnectedAt"`
	LastDisconnectedAt time.Time `json:"lastDisconnectedAt"`
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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