serv

package
v0.0.0-...-255a9d7 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServerStartCmd

func NewServerStartCmd(ctx context.Context, version string) *cobra.Command

func RunServerStart

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

RunServerStart run http server

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

func (*Server) Shutdown

func (s *Server) Shutdown()

func (*Server) Start

func (s *Server) Start() error

type ServerStartOptions

type ServerStartOptions struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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