Documentation ¶
Index ¶
- Constants
- type Node
- func (s *Node) Call(message *RpcMessage) (etf.Term, error)
- func (s *Node) CallWithTimeout(req *RpcMessage, timeout int) (etf.Term, error)
- func (s *Node) Get() node.Node
- func (s *Node) Run()
- func (s *Node) Spawn(name string, opts gen.ProcessOptions, object gen.ProcessBehavior, ...) (gen.Process, error)
- func (s *Node) Start() error
- func (s *Node) Stop() error
- type NodeConfig
- type RpcMessage
- type RpcServer
- func (tgs *RpcServer) HandleCall(process *gen.ServerProcess, from gen.ServerFrom, message etf.Term) (etf.Term, gen.ServerStatus)
- func (tgs *RpcServer) HandleCast(process *gen.ServerProcess, message etf.Term) gen.ServerStatus
- func (tgs *RpcServer) HandleDirect(process *gen.ServerProcess, ref etf.Ref, message interface{}) (interface{}, gen.DirectStatus)
- func (tgs *RpcServer) HandleInfo(process *gen.ServerProcess, message etf.Term) gen.ServerStatus
- func (tgs *RpcServer) Init(process *gen.ServerProcess, args ...etf.Term) error
- func (tgs *RpcServer) Terminate(process *gen.ServerProcess, reason string)
Constants ¶
View Source
const ( DefaultProcessName = "ErlangRPC" DefaultCallTimeout = 5 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func NewErlangNode ¶
func NewErlangNode(c *NodeConfig) (*Node, error)
func (*Node) CallWithTimeout ¶ added in v2.0.27
type NodeConfig ¶
type RpcMessage ¶ added in v2.0.27
type RpcServer ¶ added in v2.0.27
func (*RpcServer) HandleCall ¶ added in v2.0.27
func (tgs *RpcServer) HandleCall(process *gen.ServerProcess, from gen.ServerFrom, message etf.Term) (etf.Term, gen.ServerStatus)
func (*RpcServer) HandleCast ¶ added in v2.0.27
func (tgs *RpcServer) HandleCast(process *gen.ServerProcess, message etf.Term) gen.ServerStatus
func (*RpcServer) HandleDirect ¶ added in v2.0.27
func (tgs *RpcServer) HandleDirect(process *gen.ServerProcess, ref etf.Ref, message interface{}) (interface{}, gen.DirectStatus)
func (*RpcServer) HandleInfo ¶ added in v2.0.27
func (tgs *RpcServer) HandleInfo(process *gen.ServerProcess, message etf.Term) gen.ServerStatus
Click to show internal directories.
Click to hide internal directories.