Documentation ¶
Index ¶
- type Gateway
- func (g *Gateway) AddAPI(ctx context.Context, entity *gateway.API) (*gateway.API, error)
- func (g *Gateway) DeleteAPI(ctx context.Context, api *gateway.API) error
- func (g *Gateway) GetAPI(ctx context.Context, name string) (*gateway.API, error)
- func (g *Gateway) Serve() error
- func (g *Gateway) ServeHTTP(rw http.ResponseWriter, req *http.Request)
- func (g *Gateway) Shutdown() error
- func (g *Gateway) UpdateAPI(ctx context.Context, name string, entity *gateway.API) (*gateway.API, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gateway ¶
Gateway implements API Manager Gateway using local HTTP server.
func NewGateway ¶
func NewGateway(functionsClient client.FunctionsClient) (*Gateway, error)
NewGateway creates a new local API gateway
func (*Gateway) ServeHTTP ¶
func (g *Gateway) ServeHTTP(rw http.ResponseWriter, req *http.Request)
ServeHTTP implements http.Handler interface.
Click to show internal directories.
Click to hide internal directories.