Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager interface {
common.Service
common.Initializable
common.Daemon
Add(name string, opts ...ServerOption) error
Get(name string) (Server, error)
List() []Server
RegisterRouters(routers ...api.Router) error
RegisterMiddlewares(middlewares ...api.Middleware) error
}
Manager manages multiple server instances
type Server ¶
type Server interface {
common.Named
Endpoint() *api.Endpoint
Routers() []*api.HandlerGroup
HandlerPath(group *api.HandlerGroup, handler *api.Handler) string
}
Server represents a single echo server instance
type ServerOption ¶
type ServerOption func(*server)
ServerOption configures a server (echo server instance)
func WithEndpoint ¶
func WithEndpoint(host string, port uint, prefix string) ServerOption
func WithTLS ¶
func WithTLS(cert certutil.CertBundle, auth bool) ServerOption
func WithThrottle ¶
func WithThrottle(rps float64, burstSize int) ServerOption
Click to show internal directories.
Click to hide internal directories.