rdiscover

package
v1.20.11 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RDiscover

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

RDiscover register and discover

func NewRDiscover

func NewRDiscover(op *config.Config) *RDiscover

NewRegDiscover create a RegDiscover object

func (*RDiscover) GetApiServer

func (r *RDiscover) GetApiServer() (string, error)

GetApiServer fetch api server

func (*RDiscover) GetStorageServer

func (r *RDiscover) GetStorageServer() (string, error)

GetStorageServer fetch storage server

func (*RDiscover) Start

func (r *RDiscover) Start() (roleEvent chan metric.RoleType, err error)

Start the register and discover

func (*RDiscover) Stop

func (r *RDiscover) Stop() error

Stop the register and discover

type Server

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

Server define struct include all server information

Jump to

Keyboard shortcuts

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