services

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const RPCX_DEFAULT_PORT uint16 = 8972

Variables

This section is empty.

Functions

func CallMethod

func CallMethod(class, method string, args, reply interface{}) (err error)

func Initialize

func Initialize(cfg *config.Settings, verbose bool)

func RegisterAll

func RegisterAll(s *server.Server)

注册服务,插件必须在服务对象之前注册

Types

type Args

type Args struct {
	A int
	B int
}

type Arith

type Arith int

func (*Arith) Mul

func (t *Arith) Mul(ctx context.Context, args *Args, reply *Reply) error

type Reply

type Reply struct {
	C int
}

Jump to

Keyboard shortcuts

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