Documentation
¶
Index ¶
- Variables
- type Group
- type Grpc
- type GrpcUI
- type Header
- type HeaderHolder
- type Home
- type Iframe
- type Info
- type Page
- type PageUI
- type Service
- type Swagger
- type SwaggerSettings
- type View
- func (m *View) GetInfo(ctx context.Context) (*Info, error)
- func (m *View) GetPageUI(ctx context.Context, page *Page) (*httputil.ReverseProxy, error)
- func (m *View) GrpcUI(w http.ResponseWriter, r *http.Request, name string)
- func (m *View) InformationUI(w http.ResponseWriter, r *http.Request)
- func (m *View) Middleware(ctx context.Context, _ string) (func(http.Handler) http.Handler, error)
- func (m *View) Page(w http.ResponseWriter, r *http.Request, name string)
- func (m *View) SetView() (func(http.Handler) http.Handler, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultInfoDelay = 4 * time.Second
Functions ¶
This section is empty.
Types ¶
type HeaderHolder ¶ added in v0.7.1
type Info ¶
type Info struct {
Home Home `cfg:"home" json:"home"`
Iframe []Iframe `cfg:"iframe" json:"iframe,omitempty"`
Page []Page `cfg:"page" json:"page,omitempty"`
Grpc []Grpc `cfg:"grpc" json:"grpc,omitempty"`
Swagger []Swagger `cfg:"swagger" json:"swagger,omitempty"`
SwaggerSettings *SwaggerSettings `cfg:"swagger_settings" json:"swagger_settings,omitempty"`
Groups []Group `cfg:"groups" json:"groups,omitempty"`
}
type Page ¶ added in v0.7.1
type Page struct {
Name string `cfg:"name" json:"name,omitempty"`
Path string `cfg:"path" json:"path,omitempty"`
PathExtra string `cfg:"path_extra" json:"path_extra,omitempty"`
URL string `cfg:"url" json:"-"`
Header HeaderHolder `cfg:"header" json:"-"`
Host bool `cfg:"host" json:"-"`
}
Page for iframe view.
type PageUI ¶ added in v0.7.1
type PageUI struct {
Handlers cache.Cacher[cacheKey, *httputil.ReverseProxy]
// contains filtered or unexported fields
}
type Service ¶ added in v0.8.14
type Service struct {
Name string `cfg:"name" json:"name"`
Iframe []Iframe `cfg:"iframe" json:"iframe,omitempty"`
Page []Page `cfg:"page" json:"page,omitempty"`
Grpc []Grpc `cfg:"grpc" json:"grpc,omitempty"`
Swagger []Swagger `cfg:"swagger" json:"swagger,omitempty"`
SwaggerSettings *SwaggerSettings `cfg:"swagger_settings" json:"swagger_settings,omitempty"`
}
type Swagger ¶
type Swagger struct {
Name string `cfg:"name" json:"name,omitempty"`
Link string `cfg:"link" json:"link"`
Schemes []string `cfg:"schemes" json:"schemes,omitempty"`
Host string `cfg:"host" json:"host,omitempty"`
BasePath string `cfg:"base_path" json:"base_path,omitempty"`
BasePathPrefix string `cfg:"base_path_prefix" json:"base_path_prefix,omitempty"`
DisableAuthorizeButton *bool `cfg:"disable_authorize_button" json:"disable_authorize_button,omitempty"`
}
type SwaggerSettings ¶
type SwaggerSettings struct {
Schemes []string `cfg:"schemes" json:"schemes,omitempty"`
Host string `cfg:"host" json:"host,omitempty"`
BasePath string `cfg:"base_path" json:"base_path,omitempty"`
BasePathPrefix string `cfg:"base_path_prefix" json:"base_path_prefix,omitempty"`
DisableAuthorizeButton bool `cfg:"disable_authorize_button" json:"disable_authorize_button,omitempty"`
}
type View ¶
type View struct {
PrefixPath string `cfg:"prefix_path"`
Info Info `cfg:"info"`
InfoURL string `cfg:"info_url"`
InfoURLType string `cfg:"info_url_type"`
InsecureSkipVerify bool `cfg:"insecure_skip_verify"`
// contains filtered or unexported fields
}
func (*View) InformationUI ¶
func (m *View) InformationUI(w http.ResponseWriter, r *http.Request)
func (*View) Middleware ¶
Click to show internal directories.
Click to hide internal directories.