servepoint

package
v0.0.0-...-d539b93 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServePoint

type ServePoint interface {
	Serve() error
	IsAlive() bool
	Close() error
}

ServePoint is an entrance which acts as a service integration point. It's implemented as the client or the server depending on protocals and scinarios;

func NewWSClient

func NewWSClient(configKey string, h handler.WSClientHandler) (ServePoint, error)

type ServerPointGenerator

type ServerPointGenerator[H handler.Handler] (func(configKey string, h H) (ServePoint, error))

type WSClient

type WSClient struct {
	WSConfig *wsservice.WSClientConfig
	// contains filtered or unexported fields
}

func (*WSClient) Close

func (s *WSClient) Close() (err error)

func (*WSClient) IsAlive

func (s *WSClient) IsAlive() bool

func (*WSClient) Serve

func (s *WSClient) Serve() (err error)

Jump to

Keyboard shortcuts

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