Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var APIManagerFlags = struct { Config string `long:"config" description:"Path to Config file" default:"./config.dev.json"` DbFile string `long:"db-file" description:"Backend DB URL/Path" default:"./db.bolt"` DbBackend string `long:"db-backend" description:"Backend DB Name" default:"boltdb"` DbUser string `long:"db-username" description:"Backend DB Username" default:"dispatch"` DbPassword string `long:"db-password" description:"Backend DB Password" default:"dispatch"` DbDatabase string `long:"db-database" description:"Backend DB Name" default:"dispatch"` GatewayHost string `long:"gateway-host" description:"API Gateway server host" default:"gateway-kong"` Gateway string `long:"gateway" description:"API Gateway Implementation" default:"kong"` FunctionManager string `long:"function-manager" description:"Function Manager Host" default:"function-manager"` ResyncPeriod int `long:"resync-period" description:"The time period (in seconds) to sync with api gateway" default:"10"` Tracer string `long:"tracer" description:"Open Tracing Tracer endpoint" default:""` }{}
APIManagerFlags are configuration flags for the function manager
Functions ¶
func NewController ¶
func NewController(config *ControllerConfig, store entitystore.EntityStore, gw gateway.Gateway) controller.Controller
NewController creates a new controller
Types ¶
type API ¶
type API struct { entitystore.BaseEntity API gateway.API `db:"api"` }
API is a data struct used to store api information into entity store
type ControllerConfig ¶
ControllerConfig defines configuration for controller
type Handlers ¶
type Handlers struct { Store entitystore.EntityStore // contains filtered or unexported fields }
Handlers define a set of handlers for API Manager
func NewHandlers ¶
func NewHandlers(watcher controller.Watcher, store entitystore.EntityStore) *Handlers
NewHandlers create a new API Manager Handler
func (*Handlers) ConfigureHandlers ¶
func (h *Handlers) ConfigureHandlers(routableAPI middleware.RoutableAPI)
ConfigureHandlers configure handlers for API Manager
Directories ¶
Path | Synopsis |
---|---|
gen
|
|
restapi
Package restapi API Manager VMware Dispatch - API Manager APIs Schemes: http https Host: localhost BasePath: /v1/api Version: 1.0.0 Contact: <dispatch@vmware.com> Consumes: - application/json Produces: - application/json swagger:meta
|
Package restapi API Manager VMware Dispatch - API Manager APIs Schemes: http https Host: localhost BasePath: /v1/api Version: 1.0.0 Contact: <dispatch@vmware.com> Consumes: - application/json Produces: - application/json swagger:meta |
Click to show internal directories.
Click to hide internal directories.