Documentation ¶
Overview ¶
Simple helper package for easy integration with Consul server
Index ¶
- func GetPrivateIPV4() (net.IP, error)
- func PrepareServiceNameEnv(name, env string) string
- type Agent
- type CheckFunc
- type Config
- type Service
- func (s *Service) Address() string
- func (s *Service) Host() string
- func (s *Service) HostString(protocol string) string
- func (s *Service) HostStringWithSuffix(protocol, suffix string) string
- func (s *Service) Name() string
- func (s *Service) Path() string
- func (s *Service) Port() int
- func (s *Service) Url() *url.URL
- type Services
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPrivateIPV4 ¶
GetPrivateIPV4 returns private ipv4 for EC2 instance
func PrepareServiceNameEnv ¶
Types ¶
type Config ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) HostString ¶
func (*Service) HostStringWithSuffix ¶
Click to show internal directories.
Click to hide internal directories.