gokit-utils

module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2020 License: Apache-2.0

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

Path Synopsis

Jump to

Keyboard shortcuts

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