Documentation ¶
Index ¶
- Constants
- type CallInfo
- type FuncInfo
- type RetInfo
- type Server
- func (s *Server) AsynCall(srcCh chan *RetInfo, id string, args ...interface{})
- func (s *Server) Call(id string, args ...interface{}) (interface{}, error)
- func (s *Server) Call0(id string, args ...interface{}) error
- func (s *Server) Close()
- func (s *Server) Exec(ci *CallInfo)
- func (s *Server) ExecRemoveCb(ri *RetInfo)
- func (s *Server) Go(id string, args ...interface{})
- func (s *Server) HasFunc(id string) (*FuncInfo, bool)
- func (s *Server) Idle() bool
- func (s *Server) Register(id string, f interface{})
- func (s *Server) TimeOutCall(id string, t time.Duration, args ...interface{}) (interface{}, error)
Constants ¶
View Source
const (
InternalServerError = 0xFFFFFFFF
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { ChanCall chan *CallInfo AsynRet chan *RetInfo //接收发出去的异步调用的回值 AsynCallLen int32 CloseFlg int32 AsyncCallCount int32 // contains filtered or unexported fields }
one server per goroutine (goroutine not safe) one client per goroutine (goroutine not safe)
func (*Server) ExecRemoveCb ¶
Click to show internal directories.
Click to hide internal directories.