Documentation ¶
Index ¶
- type Key
- type Mapping
- type MappingRequest
- type Mappings
- func (m *Mappings) CountRowsByKey(keyId int64) (count int64, err error)
- func (m *Mappings) CountRowsByNamespace(nsId int64) (count int64, err error)
- func (m *Mappings) GetByExtValue(nsId int64, keyId int64, extVal string) (*Mappings, error)
- func (m *Mappings) GetByIntValue(nsId int64, keyId int64, intVal string) (*Mappings, error)
- func (m *Mappings) ListMappings(ns *Namespace, key *Key, intVal string, extVal string, related int) (*Mappings, error)
- func (m *Mappings) ListMappingsById(nsId int64, keyId int64, intVal string) (*Mappings, error)
- type MappingsResponse
- type Namespace
- func (n *Namespace) Clean()
- func (n *Namespace) CreateKey(keyName string) (*Key, error)
- func (n *Namespace) Delete() error
- func (n *Namespace) FindById(nsId int64) (*Namespace, error)
- func (n *Namespace) FindByName(nsName string) (*Namespace, error)
- func (n *Namespace) Get() ([]Namespace, error)
- func (n *Namespace) GetKeys() ([]Key, error)
- func (n *Namespace) KeyExists(keyName string) bool
- func (n *Namespace) Store() (*Namespace, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mapping ¶
type MappingRequest ¶
type MappingRequest MappingsResponse // пока так удобнее
type Mappings ¶
type Mappings []Mapping
func (*Mappings) CountRowsByKey ¶
func (*Mappings) CountRowsByNamespace ¶
func (*Mappings) GetByExtValue ¶
func (*Mappings) GetByIntValue ¶
func (*Mappings) ListMappings ¶
func (m *Mappings) ListMappings(ns *Namespace, key *Key, intVal string, extVal string, related int) (*Mappings, error)
* + related
1 - только связанные 0 - только не связанные 2,3 - резерв на будущее (не связанные по внешнему коду, не связанные по внутреннему коду) -1 - все
type MappingsResponse ¶
type MappingsResponse struct {
Mappings Mappings `json:"mappings"`
}
Структура для ответа связок
Click to show internal directories.
Click to hide internal directories.