Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service service agnet of consul
func RegisterService ¶
func RegisterService(consulAddress string, serviceName string, serviceIP string, servicePort int, tags []string) (*Service, error)
RegisterService register the service at consul
func (*Service) UnregisterService ¶
UnregisterService unregister service from consul
Click to show internal directories.
Click to hide internal directories.