Documentation ¶
Index ¶
- Constants
- func AddFilter(f Filter)
- func Bootstrap(args []string)
- func ProxyRequestHandler(inb *miso.Inbound)
- func PutHistoVecTimerPool(t *miso.VecTimer)
- func WrapHealthHandler(handler miso.RawTRouteHandler) miso.RawTRouteHandler
- func WrapMetricsHandler(handler miso.RawTRouteHandler) miso.RawTRouteHandler
- func WrapPprofHandler(handler miso.RawTRouteHandler) miso.RawTRouteHandler
- type CheckResAccessReq
- type CheckResAccessResp
- type Filter
- type FilterResult
- type ProxyContext
- type ServicePath
Constants ¶
View Source
const ( PropTimerExclPath = "gatekeeper.timer.path.excl" PropWhitelistPathPatterns = "gatekeeper.whitelist.path.patterns" )
View Source
const ( SERVICE_PATH = "GK_SERVICE_PATH" AUTH_INFO = "GK_AUTH_INFO" )
View Source
const (
Version = "v0.0.20"
)
Variables ¶
This section is empty.
Functions ¶
func ProxyRequestHandler ¶ added in v0.0.9
func PutHistoVecTimerPool ¶ added in v0.0.17
func WrapHealthHandler ¶ added in v0.0.9
func WrapHealthHandler(handler miso.RawTRouteHandler) miso.RawTRouteHandler
func WrapMetricsHandler ¶ added in v0.0.9
func WrapMetricsHandler(handler miso.RawTRouteHandler) miso.RawTRouteHandler
func WrapPprofHandler ¶ added in v0.0.15
func WrapPprofHandler(handler miso.RawTRouteHandler) miso.RawTRouteHandler
Types ¶
type CheckResAccessReq ¶ added in v0.0.14
type CheckResAccessResp ¶ added in v0.0.14
type CheckResAccessResp struct {
Valid bool `json:"valid"`
}
func ValidateResourceAccess ¶ added in v0.0.14
func ValidateResourceAccess(c miso.Rail, req CheckResAccessReq) (CheckResAccessResp, error)
Check whether this role has access to the url
type Filter ¶
type Filter = func(proxyContext ProxyContext) (FilterResult, error)
func GetFilters ¶
func GetFilters() []Filter
type FilterResult ¶ added in v0.0.3
type FilterResult struct { ProxyContext ProxyContext Next bool }
func NewFilterResult ¶ added in v0.0.3
func NewFilterResult(pc ProxyContext, next bool) FilterResult
type ProxyContext ¶
type ProxyContext struct { Rail miso.Rail Inb *miso.Inbound // contains filtered or unexported fields }
func NewProxyContext ¶ added in v0.0.3
func NewProxyContext(rail miso.Rail, inb *miso.Inbound) ProxyContext
func (*ProxyContext) GetAttr ¶ added in v0.0.3
func (pc *ProxyContext) GetAttr(key string) (any, bool)
func (*ProxyContext) SetAttr ¶ added in v0.0.3
func (pc *ProxyContext) SetAttr(key string, val any)
type ServicePath ¶
Click to show internal directories.
Click to hide internal directories.