Documentation
¶
Index ¶
- Variables
- type Grpc
- type GrpcUI
- type GrpcUIMWrap
- type Info
- type Swagger
- type SwaggerSettings
- type View
- func (m *View) GetInfo(ctx context.Context) (Info, error)
- func (m *View) GrpcUI(c echo.Context, name string) error
- func (m *View) InformationUI(c echo.Context) error
- func (m *View) Middleware(_ context.Context, _ string) (echo.MiddlewareFunc, error)
- func (m *View) SetView() (echo.MiddlewareFunc, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultInfoDelay = 4 * time.Second
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Info struct {
Grpc []Grpc `cfg:"grpc" json:"grpc"`
Swagger []Swagger `cfg:"swagger" json:"swagger"`
SwaggerSettings SwaggerSettings `cfg:"swagger_settings" json:"swagger_settings"`
}
type Swagger ¶
type Swagger struct {
Name string `cfg:"name" json:"name,omitempty"`
Link string `cfg:"link" json:"link,omitempty"`
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"`
}
Click to show internal directories.
Click to hide internal directories.