server

package
v0.0.0-...-e15ae8d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Server

type Server struct {
	*gnet.EventServer `wire:"-"`
	UserStorage       *storage.UserStorage
	Config            config.Config
}

func (*Server) OnInitComplete

func (s *Server) OnInitComplete(srv gnet.Server) (action gnet.Action)

func (*Server) React

func (s *Server) React(frame []byte, c gnet.Conn) (out []byte, action gnet.Action)

func (*Server) Run

func (s *Server) Run() (err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL