websocket

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(conf Config, h http.Handler) *httputil.Server

Types

type ClientSession

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

func (*ClientSession) Serve

func (s *ClientSession) Serve()

type ClientSessionInitHandler

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

func NewClientSessionInitHandler

func NewClientSessionInitHandler(manager MessageServeManager) *ClientSessionInitHandler

func (*ClientSessionInitHandler) ServeHTTP

type Config

type Config struct {
	config.Server
	Debug bool
	Cors  config.Cors
}

type MessageServeManager

type MessageServeManager interface {
	BeginServe(ctx context.Context, inCh <-chan dto.MessageCreate) (<-chan entity.Message, <-chan error, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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