serv

package
v0.0.0-...-8e617f3 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunServerStart

func RunServerStart(ctx context.Context, opts *ServerStartOptions, version string) error

Types

type Server

type Server struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Server is a websocket server

func NewServer

func NewServer(id, address string) *Server

NewServer create a Server

func (*Server) Shutdown

func (s *Server) Shutdown()

Shutdown shutdown

func (*Server) Start

func (s *Server) Start() error

Start server

Jump to

Keyboard shortcuts

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