Documentation ¶
Overview ¶
******************************************************************************
- Copyright 2017 Dell Inc.
- Copyright (c) 2019 Intel Corporation *
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- in compliance with the License. You may obtain a copy of the License at *
- http://www.apache.org/licenses/LICENSE-2.0 *
- Unless required by applicable law or agreed to in writing, software distributed under the License
- is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- or implied. See the License for the specific language governing permissions and limitations under
- the License. ******************************************************************************
******************************************************************************
- Copyright 2017 Dell Inc.
- Copyright (c) 2019 Intel Corporation *
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- in compliance with the License. You may obtain a copy of the License at *
- http://www.apache.org/licenses/LICENSE-2.0 *
- Unless required by applicable law or agreed to in writing, software distributed under the License
- is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- or implied. See the License for the specific language governing permissions and limitations under
- the License. ******************************************************************************
Index ¶
- Constants
- func LoadRestRoutes(r *gin.Engine, dic *di.Container)
- func LoadWebProxyRoutes(r *gin.Engine, webBuildPath string, dic *di.Container)
- func ProxyServer(c *gin.Context, dic *di.Container)
- func ProxyWeb(g *gin.Engine, webBuildPath string, dic *di.Container) gin.HandlerFunc
- func RegisterGateway(engine *gin.Engine, dic *di.Container)
- func RegisterOpenApi(engine *gin.Engine, dic *di.Container)
- func ReplaceURLPrefix(context *gin.Context, dic *di.Container)
- type WebBootstrap
Constants ¶
View Source
const WebBuildPath = "./cmd/hummingbird-ui/build"
/var/bin/cmd/hummingbird-ui/build
View Source
const WebBuildPath2 = "/var/build"
Variables ¶
This section is empty.
Functions ¶
func LoadWebProxyRoutes ¶
Types ¶
type WebBootstrap ¶
type WebBootstrap struct { AppMode string // contains filtered or unexported fields }
WebBootstrap contains references to dependencies required by the BootstrapHandler.
func NewWebBootstrap ¶
func NewWebBootstrap() *WebBootstrap
NewWebBootstrap is a factory method that returns an initialized WebBootstrap receiver struct.
Click to show internal directories.
Click to hide internal directories.