Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToSnakeCase ¶
Types ¶
type Attribute ¶
type Attribute struct {
ID int
Model interface{}
TypeModel interface{}
Name string
Type string
Tag string
Require bool
Active bool
}
Attribute represents a column of database
type Device ¶
type Device struct {
Model interface{}
Instances []*Instance
InstanceNames []string
// contains filtered or unexported fields
}
Device represents a table of database
type DeviceName ¶
type DeviceName interface {
DeviceName() string
}
type Instance ¶
type Instance struct {
ID int
Model interface{}
Name string
Type string
Tag string
Attributes []*Attribute
AttributeNames []string
// contains filtered or unexported fields
}
func ParseInstance ¶
func ParseInstance(dest interface{}) *Instance
ParseInstance a instance to a Instance instance
func (*Instance) GetAttribute ¶
GetAttribute return instance by name
type InstanceName ¶
type InstanceName interface {
InstanceName() string
}
Click to show internal directories.
Click to hide internal directories.