Documentation ¶
Index ¶
- func FromEntityPb(impl *protobufs.DatabaseEntity) data.Entity
- func FromSchemaPb(impl *protobufs.DatabaseEntitySchema) data.EntitySchema
- func ToEntityPb(e data.Entity) *protobufs.DatabaseEntity
- func ToSchemaPb(s data.EntitySchema) *protobufs.DatabaseEntitySchema
- type Entity
- func (e *Entity) AppendChildId(id string)
- func (e *Entity) GetChildrenIds() []string
- func (e *Entity) GetId() string
- func (e *Entity) GetName() string
- func (e *Entity) GetParentId() string
- func (e *Entity) GetType() string
- func (e *Entity) RemoveChildId(id string)
- func (e *Entity) SetChildrenIds(ids []string)
- func (e *Entity) SetId(id string)
- func (e *Entity) SetName(name string)
- func (e *Entity) SetParentId(id string)
- func (e *Entity) SetType(t string)
- type Schema
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromEntityPb ¶
func FromEntityPb(impl *protobufs.DatabaseEntity) data.Entity
func FromSchemaPb ¶
func FromSchemaPb(impl *protobufs.DatabaseEntitySchema) data.EntitySchema
func ToEntityPb ¶
func ToEntityPb(e data.Entity) *protobufs.DatabaseEntity
func ToSchemaPb ¶
func ToSchemaPb(s data.EntitySchema) *protobufs.DatabaseEntitySchema
Types ¶
type Entity ¶
type Entity struct {
// contains filtered or unexported fields
}
func (*Entity) AppendChildId ¶
func (*Entity) GetChildrenIds ¶
func (*Entity) GetParentId ¶
func (*Entity) RemoveChildId ¶
func (*Entity) SetChildrenIds ¶
func (*Entity) SetParentId ¶
type Schema ¶
type Schema struct {
// contains filtered or unexported fields
}
func (*Schema) GetFieldNames ¶
func (*Schema) GetFields ¶
func (s *Schema) GetFields() []data.FieldSchema
func (*Schema) SetFields ¶
func (s *Schema) SetFields(fields []data.FieldSchema)
Click to show internal directories.
Click to hide internal directories.