route

package
v0.0.0-...-68b20d9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 28 Imported by: 0

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

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 LoadRestRoutes

func LoadRestRoutes(r *gin.Engine, dic *di.Container)

func LoadWebProxyRoutes

func LoadWebProxyRoutes(r *gin.Engine, webBuildPath string, dic *di.Container)

func ProxyServer

func ProxyServer(c *gin.Context, dic *di.Container)

ProxyServer http proxy

func ProxyWeb

func ProxyWeb(g *gin.Engine, webBuildPath string, dic *di.Container) gin.HandlerFunc

ProxyWeb 转发

func RegisterGateway

func RegisterGateway(engine *gin.Engine, dic *di.Container)

func RegisterOpenApi

func RegisterOpenApi(engine *gin.Engine, dic *di.Container)

func ReplaceURLPrefix

func ReplaceURLPrefix(context *gin.Context, dic *di.Container)

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.

func (*WebBootstrap) BootstrapHandler

func (b *WebBootstrap) BootstrapHandler(ctx context.Context, wg *sync.WaitGroup, _ startup.Timer, dic *di.Container) bool

BootstrapHandler fulfills the BootstrapHandler contract and performs initialization needed by the resource service.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL