service_register

package
v1.3.18 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Sock string

	Schema string
	Host   string

	Interval time.Duration
	Timeout  time.Duration

	Logger logger.Logger
}

type Register

type Register struct {
	// contains filtered or unexported fields
}

func GetRegister

func GetRegister(serviceType, service string, config Config) *Register

GetRegister return a serviceRegister instance. We recognize that one process should only register once so that GetRegister is singleton Register will be initialized only once so make sure invoke GetRegister with same args if you need to call it multiple times.

func (*Register) Start

func (r *Register) Start()

func (*Register) Stop

func (r *Register) Stop()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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