simplesub

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package simplesub

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manage

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

func NewManager

func NewManager() *Manage

func (*Manage) AddGroup

func (m *Manage) AddGroup(groupName string, w http.ResponseWriter, r *http.Request) error

func (*Manage) AddGroupWithExt

func (m *Manage) AddGroupWithExt(groupName string, w http.ResponseWriter, r *http.Request, ext *inner.GroupExtData) error

func (*Manage) SendMsg

func (m *Manage) SendMsg(groupName string, msg string) error

func (*Manage) SetMaxMsgLength

func (m *Manage) SetMaxMsgLength(n int)

func (*Manage) SetUpgrade

func (m *Manage) SetUpgrade(up *websocket.Upgrader)

Jump to

Keyboard shortcuts

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