route

package
v0.0.0-...-954c9c1 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: MulanPSL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InjectGatewayConfig

func InjectGatewayConfig(s *GatewayConfig)

func LoadGatewayConfig

func LoadGatewayConfig() baseiface.ISingleton

Types

type GatewayConfig

type GatewayConfig struct {
	basedto.BaseEntity
	Config *ichubconfig.IchubConfig `json:"-"`

	ServiceId string `json:"service_id"`
	Path      string `json:"path"`
}

func FindBeanGatewayConfig

func FindBeanGatewayConfig() *GatewayConfig

func NewGatewayConfig

func NewGatewayConfig() *GatewayConfig

func (*GatewayConfig) Bypass

func (this *GatewayConfig) Bypass() bool

func (*GatewayConfig) FindServiceName

func (this *GatewayConfig) FindServiceName() string

func (*GatewayConfig) FullPath

func (this *GatewayConfig) FullPath() string

func (*GatewayConfig) LogGateway

func (this *GatewayConfig) LogGateway()

type GatewayRouter

type GatewayRouter struct {
	*GatewayConfig
	WebClient *webclient.IchubWebClient
}

func NewGatewayRouter

func NewGatewayRouter() *GatewayRouter

func (*GatewayRouter) CheckLoginAuth

func (r *GatewayRouter) CheckLoginAuth(ctx *gin.Context) *basedto.IchubResult

func (*GatewayRouter) Delete

func (*GatewayRouter) DestPath

func (r *GatewayRouter) DestPath() string

func (*GatewayRouter) Filter

func (r *GatewayRouter) Filter(ctx *gin.Context) *basedto.IchubResult

func (*GatewayRouter) Get

func (*GatewayRouter) Parse

func (r *GatewayRouter) Parse(ctx *gin.Context) *GatewayRouter

gateway/deptemp/queryemp consts ApiGateway = "/gateway/:serviceId/*path"

func (*GatewayRouter) Post

copyHeaders

func (*GatewayRouter) Put

func (*GatewayRouter) RefreshAddr

func (r *GatewayRouter) RefreshAddr() error

Jump to

Keyboard shortcuts

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