Documentation ¶
Index ¶
- type AuthRequest
- type Context
- type Model
- func (m *Model) AddElement(element *ModelElement) *Model
- func (m *Model) Contains(other *Model) bool
- func (m *Model) ContainsElement(element *ModelElement) bool
- func (m *Model) GetNuclearElem() (*Model, error)
- func (m *Model) IsDuplicate(other *Model) bool
- func (m *Model) IsValid() error
- func (m *Model) IsValidName() error
- type ModelElement
- type Properties
- type Property
- type Unit
- type UnitsMap
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthRequest ¶
type Context ¶
type Context struct { ID int `db:"id"` RegDate string `db:"registration_date"` Text string `db:"text"` }
func (*Context) ContainsUnit ¶
func (*Context) IsDuplicate ¶
func (*Context) SetRegDate ¶
type Model ¶
func (*Model) AddElement ¶
func (m *Model) AddElement(element *ModelElement) *Model
func (*Model) ContainsElement ¶
func (m *Model) ContainsElement(element *ModelElement) bool
func (*Model) GetNuclearElem ¶
func (*Model) IsDuplicate ¶
func (*Model) IsValidName ¶
type ModelElement ¶
func (*ModelElement) IsValid ¶
func (e *ModelElement) IsValid() error
type Properties ¶
type Properties []Property
func (Properties) Contains ¶
func (p Properties) Contains(other *Property) bool
func (Properties) RemoveDuplicates ¶
func (p Properties) RemoveDuplicates() Properties
type Property ¶
func (*Property) IsDuplicate ¶
type Unit ¶
type Unit struct { ID int `db:"id"` ModelID int `db:"model_id"` RegDate string `db:"registration_date"` Text string `db:"text"` }
func (Unit) GetNuclearElem ¶
func (Unit) SetRegDate ¶
Click to show internal directories.
Click to hide internal directories.