Documentation ¶ Index ¶ type Server func NewServer() (*Server, error) func (s *Server) Run(logFilePath string) error func (s *Server) Running() bool func (s *Server) ShowUsers() error func (s *Server) Stop() error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Server ¶ type Server struct { // contains filtered or unexported fields } Server billing 服务 func NewServer ¶ func NewServer() (*Server, error) NewServer 创建一个Server对象 func (*Server) Run ¶ func (s *Server) Run(logFilePath string) error Run 运行billing func (*Server) Running ¶ func (s *Server) Running() bool Running 判断是否为运行中,当调用stop停止服务时,此值为false func (*Server) ShowUsers ¶ func (s *Server) ShowUsers() error ShowUsers 通知服务器显示用户列表 func (*Server) Stop ¶ func (s *Server) Stop() error Stop 发送停止命令到server Source Files ¶ View all Source files clean.go init_database.go init_listener.go init_logger.go load_handlers.go run.go run_accept_loop.go send_packet_to_server.go server.go show_users.go stop.go Click to show internal directories. Click to hide internal directories.