Documentation ¶ Index ¶ type Server func (s *Server) OnBoot(eng gnet.Engine) (action gnet.Action) func (s *Server) OnClose(c gnet.Conn, err error) (action gnet.Action) func (s *Server) OnOpen(c gnet.Conn) (out []byte, action gnet.Action) func (s *Server) OnTraffic(c gnet.Conn) (action gnet.Action) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Server ¶ type Server struct { gnet.BuiltinEventEngine Network string Addr string Multicore bool DB *gorm.DB // contains filtered or unexported fields } 用于转发的gnet server func (*Server) OnBoot ¶ func (s *Server) OnBoot(eng gnet.Engine) (action gnet.Action) func (*Server) OnClose ¶ func (s *Server) OnClose(c gnet.Conn, err error) (action gnet.Action) func (*Server) OnOpen ¶ func (s *Server) OnOpen(c gnet.Conn) (out []byte, action gnet.Action) func (*Server) OnTraffic ¶ func (s *Server) OnTraffic(c gnet.Conn) (action gnet.Action) Source Files ¶ View all Source files server.go Click to show internal directories. Click to hide internal directories.