server

package
v0.0.0-...-f894a38 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mux

type Mux struct {
	OnConnect  func(w io.Writer, cid string)
	OnReadData func(w io.Writer, r io.Reader, cid string)
}

type Server

type Server struct {
	WriteCh chan *models.Event
	// contains filtered or unexported fields
}

func NewServer

func NewServer(pool entities.Pool, poller netpoll.Poller, mux Mux) *Server

func (*Server) Serve

func (s *Server) Serve(port string) error

func (*Server) Shutdown

func (s *Server) Shutdown(err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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