obrpcservice

package
v0.0.0-...-ab4d947 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionCmd

type ActionCmd int
const (
	Action_RemoteCall ActionCmd = iota
	Action_RemoteExit
)

type RPCAction

type RPCAction struct {
	Ret      []interface{}
	RetError error

	RetChannel chan ActionCmd
	// contains filtered or unexported fields
}

RPCAction !

func NewRPCAction

func NewRPCAction(objName, funcName string, needRet bool, params ...interface{}) *RPCAction

func (*RPCAction) SetObjectIndex

func (me *RPCAction) SetObjectIndex(index int) *RPCAction

type RPCServiceExt

type RPCServiceExt struct {
	ConnectPoint chan ActionCmd
	// contains filtered or unexported fields
}

func InstanceExt

func InstanceExt() *RPCServiceExt

func (*RPCServiceExt) AddServiceObjects

func (me *RPCServiceExt) AddServiceObjects(name string, objects []interface{}) bool

AddServiceObjects !

func (*RPCServiceExt) PushRPCAction

func (me *RPCServiceExt) PushRPCAction(action *RPCAction) bool

PushRPCAction !

func (*RPCServiceExt) StartRPCServiceExt

func (me *RPCServiceExt) StartRPCServiceExt()

func (*RPCServiceExt) StopRPCServiceExt

func (me *RPCServiceExt) StopRPCServiceExt()

type RoutinePool

type RoutinePool struct {
	JobsChannel chan Task
	// contains filtered or unexported fields
}

func NewRoutinePool

func NewRoutinePool(cap int) *RoutinePool

func (*RoutinePool) Close

func (me *RoutinePool) Close()

func (*RoutinePool) Run

func (me *RoutinePool) Run()

type Task

type Task interface {
	Do()
}

Jump to

Keyboard shortcuts

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