Documentation
¶
Index ¶
- func IsValidPlacetype(name string) bool
- func IsValidPlacetypeId(id int64) bool
- type WOFPlacetype
- func Ancestors(pt *WOFPlacetype) []*WOFPlacetype
- func AncestorsForRoles(pt *WOFPlacetype, roles []string) []*WOFPlacetype
- func Children(pt *WOFPlacetype) []*WOFPlacetype
- func Descendants(pt *WOFPlacetype) []*WOFPlacetype
- func DescendantsForRoles(pt *WOFPlacetype, roles []string) []*WOFPlacetype
- func GetPlacetypeById(id int64) (*WOFPlacetype, error)
- func GetPlacetypeByName(name string) (*WOFPlacetype, error)
- type WOFPlacetypeAltNames
- type WOFPlacetypeName
- type WOFPlacetypeSpecification
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsValidPlacetype ¶
func IsValidPlacetypeId ¶
Types ¶
type WOFPlacetype ¶
type WOFPlacetype struct {
Id int64 `json:"id"`
Name string `json:"name"`
Role string `json:"role"`
Parent []int64 `json:"parent"`
}
func Ancestors ¶
func Ancestors(pt *WOFPlacetype) []*WOFPlacetype
func AncestorsForRoles ¶
func AncestorsForRoles(pt *WOFPlacetype, roles []string) []*WOFPlacetype
func Children ¶
func Children(pt *WOFPlacetype) []*WOFPlacetype
func Descendants ¶
func Descendants(pt *WOFPlacetype) []*WOFPlacetype
func DescendantsForRoles ¶
func DescendantsForRoles(pt *WOFPlacetype, roles []string) []*WOFPlacetype
func GetPlacetypeById ¶
func GetPlacetypeById(id int64) (*WOFPlacetype, error)
func GetPlacetypeByName ¶
func GetPlacetypeByName(name string) (*WOFPlacetype, error)
type WOFPlacetypeAltNames ¶
type WOFPlacetypeName ¶
type WOFPlacetypeSpecification ¶
type WOFPlacetypeSpecification map[string]WOFPlacetype
func Spec ¶
func Spec() (*WOFPlacetypeSpecification, error)
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
mk-spec
command
|
|
|
wof-placetype-ancestors
command
|
|
|
wof-placetype-children
command
|
|
|
wof-placetype-descendants
command
|
|
Click to show internal directories.
Click to hide internal directories.