MyRpc

package
v0.0.0-...-270a0fb Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MyRpc

type MyRpc struct {
	Proportion int //此微服务的占比

	RegisterCenterIp string
	// contains filtered or unexported fields
}

func NewMyRpc

func NewMyRpc(ip string, proportion int) *MyRpc

func (*MyRpc) Register

func (this *MyRpc) Register(components interface{})

传入结构体指针

func (*MyRpc) StartServer

func (this *MyRpc) StartServer(port int)

Jump to

Keyboard shortcuts

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