connect

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Connection ...

func New

func New() *Connection

New is...

func (*Connection) Close

func (c *Connection) Close()

Close is ...

func (*Connection) Send

func (c *Connection) Send(msg interface{}) error

Send is...

func (*Connection) SetSubscribeFunc

func (c *Connection) SetSubscribeFunc(f func() interface{})

SetSubscribeFunc ...

func (*Connection) SetUnsubscribeFunc

func (c *Connection) SetUnsubscribeFunc(f func() interface{})

SetUnsubscribeFunc ...

func (*Connection) Stream

func (c *Connection) Stream() <-chan []byte

Stream ...

func (*Connection) Subscribe

func (c *Connection) Subscribe() error

Subscribe ...

func (*Connection) Unsubscribe

func (c *Connection) Unsubscribe() error

Unsubscribe ...

Jump to

Keyboard shortcuts

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