service

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(etcdAddr string, config Config, ttl int64) error

Register register service with name as prefix to etcd, multi etcd addr should use ';' to split

func UnRegister

func UnRegister(key string)

UnRegister remove service from etcd

Types

type Config

type Config struct {
	Schema string
	Author string
	Name   string
	Addr   string
}

Config configuration information for the service

Jump to

Keyboard shortcuts

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