Documentation
¶
Index ¶
- type Rest
- func (r *Rest) DiscoverDataHandler() gin.HandlerFunc
- func (r *Rest) Handler(endpoint gw_model.Endpoint) gin.HandlerFunc
- func (r *Rest) ListTablesHandler() gin.HandlerFunc
- func (r *Rest) PrepareQueryHandler() gin.HandlerFunc
- func (r *Rest) QueryHandler() gin.HandlerFunc
- func (r *Rest) RegisterRoutes(mux *http.ServeMux, disableSwagger bool, rawMode bool, addresses ...string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Rest ¶
Rest handles OpenAPI schema generation and sample data serving.
func (*Rest) DiscoverDataHandler ¶ added in v0.1.0
func (r *Rest) DiscoverDataHandler() gin.HandlerFunc
DiscoverDataHandler discovers data structure for connected gateway
func (*Rest) ListTablesHandler ¶ added in v0.1.0
func (r *Rest) ListTablesHandler() gin.HandlerFunc
ListTablesHandler returns a list of available tables
func (*Rest) PrepareQueryHandler ¶ added in v0.1.0
func (r *Rest) PrepareQueryHandler() gin.HandlerFunc
PrepareQueryHandler verifies query and prepares output structure
func (*Rest) QueryHandler ¶ added in v0.1.0
func (r *Rest) QueryHandler() gin.HandlerFunc
QueryHandler executes a query against the database
Click to show internal directories.
Click to hide internal directories.