Documentation
¶
Index ¶
Constants ¶
View Source
const (
// HiroFileName is the hiro config
HiroFileName = "hiro.json"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APISpec ¶
type APISpec struct {
Spec string `json:"spec,omitempty"`
Source string `json:"source,omitempty"`
Principal string `json:"principal,omitempty"`
// Version is the semantic version for the function
Version string `json:"version,omitempty"`
// Models is the models path
Models string `json:"models"`
GenerateStubs bool `json:"operation_stubs"`
BasePath string `json:"base"`
WithContext bool `json:"with_context"`
AutoSync bool `json:"auto_sync"`
}
APISpec defines an API Specification
type Config ¶
type Config struct {
// Name is the project name
Name string `json:"name"`
// APIs is the project apis
APIs map[string]*APISpec `json:"apis"`
// Options is the Swagger Generation Options
Options GenOptions `json:"options"`
// Keys is the encryption keys
Keys map[string]string `json:"keys"`
// License is the license definition for the project
License License `json:"license"`
// Environment defines the global environment
Environment map[string]map[string]string `json:"environment,omitempty"`
// contains filtered or unexported fields
}
Config is the hiro project file definition
type Function ¶
type Function struct {
Source string `json:"source,omitempty"`
Proxy string `json:"proxy,omitempty"`
Env string `json:"env,omitempty"`
}
Function defines a function settings
type GenOptions ¶
type GenOptions struct {
// Generate using non-pointer arrays i.e. []type vs []*type
ScalarArrays bool `json:"scalar_arrays"`
}
GenOptions defines globa swagger generation options
Click to show internal directories.
Click to hide internal directories.