 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct {
	*BasicInfo
	Labels         map[string]string `json:"labels"`
	Authorizations []*Authorization  `json:"auth"`
}
    type Authorization ¶
type Plugin ¶
type Plugin struct {
	Disable bool        `json:"disable"`
	Config  interface{} `json:"config"`
}
    type PluginProxyRewriteV2Config ¶
type PluginProxyRewriteV2Config struct {
	PathType    string            `json:"path_type"`
	StaticPath  string            `json:"static_path,omitempty"` //path_type=static启用
	PrefixPath  []*PrefixPath     `json:"prefix_path,omitempty"` //path_type=prefix 启用
	RegexPath   []*RegexPath      `json:"regex_path,omitempty"`  //path_type=regex 启用
	NotMatchErr bool              `json:"not_match_err"`
	HostRewrite bool              `json:"host_rewrite"`
	Host        string            `json:"host,omitempty"`
	Headers     map[string]string `json:"headers"`
}
    type PrefixPath ¶
type Router ¶
type Router struct {
	*BasicInfo
	Listen    int                `json:"listen"`
	Host      []string           `json:"host"`
	Method    []string           `json:"method"`
	Protocols []string           `json:"protocols"`
	Location  string             `json:"location"`
	Rules     []*Rule            `json:"rules"`
	Service   string             `json:"service"`
	Plugins   map[string]*Plugin `json:"plugins"`
	Retry     int                `json:"retry"`
	TimeOut   int                `json:"time_out"`
	Labels    map[string]string  `json:"labels"`
}
    type Service ¶
type WorkerItem ¶
func NewWorkerItem ¶
func NewWorkerItem[T any](basic *BasicInfo, attr *T) *WorkerItem[T]
func (*WorkerItem[T]) MarshalJSON ¶
func (w *WorkerItem[T]) MarshalJSON() ([]byte, error)
func (*WorkerItem[T]) UnmarshalJSON ¶
func (w *WorkerItem[T]) UnmarshalJSON(bytes []byte) error
 Click to show internal directories. 
   Click to hide internal directories.