service

package
v1.7.12 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultNodeInfo

type DefaultNodeInfo struct {
	Ip      string `json:"ip"`
	Port    int    `json:"port"`
	Offline bool   `json:"offline"`
	Weight  uint64 `json:"weight"`
}

func (*DefaultNodeInfo) GetIp

func (d *DefaultNodeInfo) GetIp() string

func (*DefaultNodeInfo) GetOffline

func (d *DefaultNodeInfo) GetOffline() bool

func (*DefaultNodeInfo) GetPort

func (d *DefaultNodeInfo) GetPort() int

func (*DefaultNodeInfo) GetWeight

func (d *DefaultNodeInfo) GetWeight() uint64

type NodeInfo

type NodeInfo interface {
	GetIp() string
	GetPort() int
	GetOffline() bool
	GetWeight() uint64
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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