pkg

package
v0.0.0-...-2a016b9 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ServerName = "RpcServer"
	Addr       = ":1234"
)

Functions

func Register

func Register(svr interface{}) error

Types

type Client

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

func DialServer

func DialServer() (*Client, error)

func (*Client) Request

func (c *Client) Request(rsp *string) error

type RpcServer

type RpcServer interface {
	Server(request string, rsp *string) error
}

Jump to

Keyboard shortcuts

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