Documentation ¶
Index ¶
- func CollisionStrategies() []string
- func FindIface(ip net.IP) (iface net.Interface, err error)
- func IfaceCheck(ip net.IP, iface net.Interface, ifaceChanged chan struct{})
- func Publish(ip net.IP, iface net.Interface, service Service, shutdown chan struct{}, ...) (err error)
- func SetLogLevel(level logrus.Level)
- type CollisionStrategy
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollisionStrategies ¶
func CollisionStrategies() []string
func SetLogLevel ¶
Types ¶
type CollisionStrategy ¶
type CollisionStrategy int
const ( Inaction CollisionStrategy = iota HostName )
func NewCollisionStrategy ¶
func NewCollisionStrategy(strategy string) (CollisionStrategy, error)
func (CollisionStrategy) String ¶
func (strategy CollisionStrategy) String() (string, error)
type Service ¶
type Service struct { Name string `mapstructure:"name"` HostName string `mapstructure:"host_name"` SvcType string `mapstructure:"type"` Domain string `mapstructure:"domain"` Port int `mapstructure:"port"` TTL uint32 `mapstructure:"ttl"` }
func (*Service) AlterName ¶
func (s *Service) AlterName(strategy CollisionStrategy) error
Click to show internal directories.
Click to hide internal directories.