Documentation ¶
Index ¶
- type DNSServer
- func (s *DNSServer) AddService(id string, service Service) (err error)
- func (s *DNSServer) GetAllServices() map[string]Service
- func (s *DNSServer) GetService(id string) (Service, error)
- func (s *DNSServer) RemoveService(id string) (err error)
- func (s *DNSServer) Start() error
- func (s *DNSServer) Stop() error
- type HTTPServer
- type Service
- type ServiceListProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DNSServer ¶
type DNSServer struct {
// contains filtered or unexported fields
}
DNSServer represents a DNS server
func NewDNSServer ¶
NewDNSServer create a new DNSServer
func (*DNSServer) AddService ¶
AddService adds a new container and thus new DNS records
func (*DNSServer) GetAllServices ¶
GetAllServices reads all services from the repository
func (*DNSServer) GetService ¶
GetService reads a service from the repository
func (*DNSServer) RemoveService ¶
RemoveService removes a new container and thus DNS records
type HTTPServer ¶
type HTTPServer struct {
// contains filtered or unexported fields
}
HTTPServer represents the http endpoint
func NewHTTPServer ¶
func NewHTTPServer(c *utils.Config, list ServiceListProvider) *HTTPServer
NewHTTPServer create a new http endpoint
Click to show internal directories.
Click to hide internal directories.