socket

package
v0.0.0-...-2e53e79 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoSuchSocket = fmt.Errorf("socket does not exists")

Functions

func NewManager

func NewManager(ctx context.Context) *manager

Types

type Conn

type Conn interface {
	Write(data []byte) error
	ReadChan() <-chan []byte
	Kill()
}

type Data

type Data struct {
	Bytes    []byte
	UserID   discord.UserID
	SocketID uuid.UUID
}

Jump to

Keyboard shortcuts

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