Documentation ¶
Index ¶
- func Buffer2String(buffer []byte, n int) string
- func ReadSvrStr() string
- type Server
- func (svr *Server) Back(restorePath string)
- func (svr *Server) Clone(port string) lib.Server
- func (svr *Server) Close()
- func (svr *Server) CloseInContainer()
- func (svr *Server) End()
- func (svr *Server) Execute(_command string)
- func (svr *Server) GetDisablePluginList() map[string]lib.Plugin
- func (svr *Server) GetName() string
- func (svr *Server) GetParserList() []lib.Parser
- func (svr *Server) GetPluginList() map[string]lib.Plugin
- func (svr *Server) GetPort() string
- func (svr *Server) Getinfo() string
- func (svr *Server) Init(name string, argv []string, workDir string)
- func (svr *Server) RegParser(reg string) ([]string, bool)
- func (svr *Server) ReloadConf()
- func (svr *Server) Restart()
- func (svr *Server) Run()
- func (svr *Server) RunParsers(word string)
- func (svr *Server) RunPlugin(cmd *command.Command)
- func (svr *Server) RunPluginClose()
- func (svr *Server) RunUniquePlugin(handle func())
- func (svr *Server) Say(argv ...interface{})
- func (svr *Server) Start(name string, Argv []string, workDir string)
- func (svr *Server) Tell(player string, argv ...interface{})
- func (svr *Server) WaitEndLoading() bool
- func (svr *Server) WriteLog(level string, msg string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadSvrStr ¶
func ReadSvrStr() string
Types ¶
type Server ¶
type Server struct { Stdout *bufio.Reader //子进程输出 Cmd *exec.Cmd //子进程实例 // contains filtered or unexported fields }
func (*Server) GetDisablePluginList ¶
获取当前实例的禁用插件列表
func (*Server) RunUniquePlugin ¶
func (svr *Server) RunUniquePlugin(handle func())
等待现有插件的完成并停止后面插件的运行,在执行相关操作
func (*Server) WaitEndLoading ¶
Click to show internal directories.
Click to hide internal directories.