core/

directory
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2024 License: Apache-2.0, BSD-3-Clause, MIT

README

Gateway Core Package

This package contains the core functionality of the gateway, including configuration reading, routing logic, and protocol forwarding.

config

Defines the gateway configuration structure and various methods for reading configuration from different sources.

router

Implements the routing strategy for the gateway. See 路由配置 for more details.

rule

Implements the rule engine for fine-grained matching rules. See 精细匹配规则引擎 for more details.

service

Supports multiple forwarding protocols, currently including HTTP and tRPC. Support for other protocols such as gRPC will be added in the future.

Directories

Path Synopsis
Package config provides gateway configuration related functions
Package config provides gateway configuration related functions
configmock
Package configmock is a generated GoMock package.
Package configmock is a generated GoMock package.
Package entity defines entities related to route configuration.
Package entity defines entities related to route configuration.
loader
file
Package file provides a router config loader with file.
Package file provides a router config loader with file.
etcd Module
Package router Gateway routing module
Package router Gateway routing module
mock
Package mock_router is a generated GoMock package.
Package mock_router is a generated GoMock package.
Package rule encapsulates a simple rule matching mechanism for dynamic parameter matching
Package rule encapsulates a simple rule matching mechanism for dynamic parameter matching
service
fhttp/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
protocol/http
Package http converts fasthttp requests to net/http requests It refers to the logic of net/http/httputil/reverseproxy.go
Package http converts fasthttp requests to net/http requests It refers to the logic of net/http/httputil/reverseproxy.go
protocol/mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
protocol/grpc Module

Jump to

Keyboard shortcuts

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