Documentation ¶
Index ¶
- func BuildMatchMap(FSSpecMap map[string]interface{}, s SpecFS)
- func CreateFSCacheFromSpecFiles(specFiles []string) (map[string]*FS, error)
- func CreateFSMapFromSpecFiles(specFiles []string) (map[string]interface{}, error)
- func CreateMapFromSpecFiles(specFiles []string) (map[string]*API, error)
- type API
- type Category
- type CategoryFS
- type FS
- type Route
- type Routes
- type SpecAPI
- type SpecFS
- type SubCategory
- type SubCategoryFS
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildMatchMap ¶
BuildMatchMap build fs match map
func CreateFSCacheFromSpecFiles ¶
CreateFSCacheFromSpecFiles build spec fs cache for data processing
func CreateFSMapFromSpecFiles ¶
CreateFSMapFromSpecFiles build spec api cache for presenting trace data
Types ¶
type API ¶
type API struct { Name string `mapstructure:"name" yaml:"name"` Description string `mapstructure:"description" yaml:"description"` URI string `mapstructure:"uri" yaml:"uri"` Method string `mapstructure:"method" yaml:"method"` Severity string `mapstructure:"severity" yaml:"severity"` SeverityInt int `mapstructure:"severity_int" yaml:"severity_int"` }
API data model
func (*API) UnmarshalYAML ¶
UnmarshalYAML over unmarshall
type Category ¶
type Category struct { Name string `yaml:"name"` SubCategory *SubCategory `yaml:"sub_category"` }
Category data model
type CategoryFS ¶
type CategoryFS struct { Name string `yaml:"name"` SubCategory *SubCategoryFS `yaml:"sub_category"` }
CategoryFS data model
type FS ¶
type FS struct { Name string `mapstructure:"name" yaml:"name"` Description string `mapstructure:"description" yaml:"description"` Commands []string `mapstructure:"commands" yaml:"commands"` Severity string `mapstructure:"severity" yaml:"severity"` SeverityInt int `mapstructure:"severity_int" yaml:"severity_int"` }
FS data model
func (*FS) UnmarshalYAML ¶
UnmarshalYAML over unmarshall
type Routes ¶
type Routes []Route
Routes api routes
func BuildSpecRoutes ¶
BuildSpecRoutes build api routes from spec file
type SpecFS ¶
type SpecFS struct { SpecFile string `yaml:"spec"` Categories []CategoryFS `yaml:"categories"` }
SpecFS data model
type SubCategory ¶
SubCategory data model
type SubCategoryFS ¶
SubCategoryFS data model
Click to show internal directories.
Click to hide internal directories.