mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-04-26 12:55:29 +00:00
27 lines
561 B
Go
27 lines
561 B
Go
package config
|
|
|
|
type Config struct {
|
|
Api ApiConfig `json:"api"`
|
|
Modules []ModuleConfig `json:"modules"`
|
|
Routes []RouteConfig `json:"routes"`
|
|
}
|
|
|
|
type ApiConfig struct {
|
|
Port int `json:"port"`
|
|
}
|
|
type ModuleConfig struct {
|
|
Id string `json:"id"`
|
|
Type string `json:"type"`
|
|
Params Params `json:"params,omitempty"`
|
|
}
|
|
|
|
type RouteConfig struct {
|
|
Input string `json:"input"`
|
|
Processors []ProcessorConfig `json:"processors"`
|
|
}
|
|
|
|
type ProcessorConfig struct {
|
|
Type string `json:"type"`
|
|
Params Params `json:"params,omitempty"`
|
|
}
|