discovery

package
v3.0.8-rc.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2018 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiscoverInterface

type DiscoverInterface interface {
	// OutPut returns the output server address
	Output() string
	// IntPut returns the input server address
	Input() string
}

type RegDiscover

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

RegDiscover register and discover

func NewRegDiscover

func NewRegDiscover(moduleName string, zkserv string, ip string, port uint, isSSL bool) *RegDiscover

NewRegDiscover create a RegDiscover object

func (*RegDiscover) GetApiServ

func (r *RegDiscover) GetApiServ() (string, error)

GetApiServ fetch proc server info

func (*RegDiscover) GetServer

func (r *RegDiscover) GetServer(servType string) (string, error)

func (*RegDiscover) Input

func (r *RegDiscover) Input() string

func (*RegDiscover) Output

func (r *RegDiscover) Output() string

func (*RegDiscover) Ping

func (cc *RegDiscover) Ping() error

Ping to ping server

func (*RegDiscover) Start

func (r *RegDiscover) Start() error

Start the register and discover

func (*RegDiscover) Stop

func (r *RegDiscover) Stop() error

Stop the register and discover

Jump to

Keyboard shortcuts

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