broadcast

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand() *cli.Command

func Run

func Run(ctx *cli.Context) error

Types

type Handler

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

func (*Handler) OnClose

func (c *Handler) OnClose(socket *gws.Conn, err error)

func (*Handler) OnMessage

func (c *Handler) OnMessage(socket *gws.Conn, message *gws.Message)

func (*Handler) OnOpen

func (c *Handler) OnOpen(socket *gws.Conn)

func (*Handler) OnPing

func (c *Handler) OnPing(socket *gws.Conn, payload []byte)

func (*Handler) OnPong

func (c *Handler) OnPong(socket *gws.Conn, payload []byte)

func (*Handler) SelectURL added in v1.0.14

func (c *Handler) SelectURL() string

func (*Handler) ShowProgress

func (c *Handler) ShowProgress()

type Params added in v1.0.14

type Params struct {
	Serial      int64
	Urls        []string
	Compress    bool
	Payload     []byte
	PayloadSize int
	NumClient   int
	NumMessage  int
	Interval    int
}

Jump to

Keyboard shortcuts

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