package
Version:
v2.2.0-alpha2+incompat...
Opens a new window with list of versions in this module.
Published: Dec 8, 2018
License: Apache-2.0
Opens a new window with license information.
Imports: 25
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type ListenConfigStorage interface {
Update(*v3.ListenConfig) (*v3.ListenConfig, error)
Get(namespace, name string) (*v3.ListenConfig, error)
}
type Server struct {
sync.Mutex
}
func (s *Server) Disable(config *v3.ListenConfig)
func (s *Server) Enable(config *v3.ListenConfig) (bool, error)
func (s *Server) Handler() http.Handler
func (s *Server) Shutdown() error
type ServerInterface interface {
Disable(config *v3.ListenConfig)
Enable(config *v3.ListenConfig) (bool, error)
Shutdown() error
}
func NewServer(ctx context.Context, listenConfigStorage ListenConfigStorage,
handler http.Handler, httpPort, httpsPort int) ServerInterface
Source Files
¶
Click to show internal directories.
Click to hide internal directories.