kmdns

package module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

README

https://github.com/hashicorp/mdns

能发现服务方所有暴露的局域网ip(包含docker等虚拟ip) 但是client端却按顺序只取了最后一个值 不是期望的值

https://github.com/pion/mdns

实现简单,返回局域网ip

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KmDNS

type KmDNS struct {
	// contains filtered or unexported fields
}

func New

func New(serviceName string, timeout time.Duration) *KmDNS

func (*KmDNS) FindMasterService

func (k *KmDNS) FindMasterService() string

FindMasterService

func (*KmDNS) Server

func (k *KmDNS) Server()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL