node

package module
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type INodeAddr

type INodeAddr interface {
	IsLocalhost() bool
	GetIPString() string
	String() string
}

type IPromise

type IPromise interface {
	Then(f interface{}) IPromise
	Catch(f func(error)) IPromise
	Final(f func()) IPromise
	Timeout(timeout time.Duration) IPromise
	Done()
}

type IProxy

type IProxy interface {
	Call(fname string, args ...interface{}) IPromise
	GetNodeAddr() INodeAddr
	Avail() bool
	Reset(proxy IProxy)
	AddBuffer(n int, fullcb func())
}

type IRpcContext

type IRpcContext interface {
	GetRemoteNodeAddr() INodeAddr
	GetRemoteServiceAddr() int32
	Return(args ...interface{})
	Error(error)
}

type ITimer

type ITimer interface {
	Start()
	Stop()
	SetInterval(interval time.Duration)
	SetDelay(delay time.Duration)
	SetFunc(f func())
	Set(interval, delay time.Duration, f func())
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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