module
Version:
v0.0.2
Opens a new window with list of versions in this module.
Published: Dec 2, 2020
License: Apache-2.0
Opens a new window with license information.
README
¶
gokit-utils
Go Kit Utils for microservices
Eureka registration
package main
import (
"github.com/alapierre/gokit-utils/eureka"
)
func main() {
eurekaInstance, err := eureka.New().
Default(8080, "api/schedule").
Register("http://localhost:8761/eureka", "scheduler-service")
if err != nil {
panic(err)
}
defer eurekaInstance.Deregister()
}
Directories
¶
Click to show internal directories.
Click to hide internal directories.