Documentation
¶
Index ¶
- Constants
- func Generate(config *app.Config, file string, modFile string)
- func Load(pattern string) (*api.Microgateway, error)
- func Register(patternName string, pattern string) error
- type Action
- type Factory
- type GenerateResource
- type Generator
- type Import
- type Imports
- type Input
- type Manager
- type Output
- type Settings
Constants ¶
View Source
const VersionMaster = "master"
VersionMaster is the master version
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Action ¶
type Action struct {
// contains filtered or unexported fields
}
Action is the microgateway action
func (*Action) IOMetadata ¶
func (a *Action) IOMetadata() *metadata.IOMetadata
IOMetadata returns the iometadata for the microgateway
type Factory ¶
Factory is a microgateway factory
func (*Factory) Generate ¶
func (f *Factory) Generate(settingsName string, imports *Imports, config *action.Config) (code string, err error)
Generate generates go code from an action
func (*Factory) Initialize ¶
func (f *Factory) Initialize(ctx action.InitContext) error
Initialize initializes the factory
type GenerateResource ¶
type GenerateResource interface {
Generate() bool
}
GenerateResource is used to determine if a resource is generated, defaults to true
type Generator ¶
type Generator interface {
Generate(settingsName string, imports *Imports, config *action.Config) (code string, err error)
}
Generator generates code for an action
type Input ¶
type Input struct {
}
Input represents the inputs into the microgateway
type Manager ¶
type Manager struct {
}
Manager loads the microgateway definition resource
Directories
¶
| Path | Synopsis |
|---|---|
|
activity
|
|
|
anomaly/examples/api
command
|
|
|
anomaly/examples/api/support
command
|
|
|
anomaly/examples/json/support
command
|
|
|
circuitbreaker/examples/api
command
|
|
|
jwt/examples/api
command
|
|
|
ratelimiter/examples/api/basic
command
|
|
|
ratelimiter/examples/api/smart
command
|
|
|
ratelimiter/examples/json/smart
command
|
|
|
sqld/examples/api
command
|
|
|
api/async-gateway
command
|
|
|
api/basic-gateway
command
|
|
|
api/custom-pattern
command
|
|
|
api/default-channel-pattern
command
|
|
|
api/default-http-pattern
command
|
|
|
api/handler-routing
command
|
|
|
json/custom-pattern/server
command
|
|
|
json/default-http-pattern
command
|
|
|
internal
|
|
|
pattern
Code generated by go-bindata.
|
Code generated by go-bindata. |
|
schema
Code generated by go-bindata.
|
Code generated by go-bindata. |
Click to show internal directories.
Click to hide internal directories.