gatewayRouter

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DelRouterConfig

func DelRouterConfig(id string) error

func GetRouterVOParams

func GetRouterVOParams(vo *RouterVO) (string, string, string, error)

func SetRouterConfig

func SetRouterConfig(vo *RouterVO) error

Types

type RouterVO

type RouterVO struct {
	Id         string                   `json:"id"`         // json字段
	Uri        string                   `json:"uri"`        // json字段
	Order      int                      `json:"order"`      // json字段
	Predicates []map[string]interface{} `json:"predicates"` // json字段
	Filters    []map[string]interface{} `json:"filters"`    // json字段
	Metadata   map[string]interface{}   `json:"metadata"`   // json字段
}

func BuildRouterVO

func BuildRouterVO(serviceType string, serviceName string, serviceUri string, redirectUri string) *RouterVO

func GetRouterConfig

func GetRouterConfig() ([]*RouterVO, error)

Jump to

Keyboard shortcuts

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