utils

package
v0.0.0-...-d110d36 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadFile

func ReadFile(f string) (data []string)

ReadFile reads file in lines.

Types

type MuxConn

type MuxConn struct {
	Conn *websocket.Conn
	// contains filtered or unexported fields
}

MuxConn is a websocket.Conn with Mutex.

func (*MuxConn) Send

func (m *MuxConn) Send(v interface{}) error

Send sends JSON.

type Signal

type Signal struct {
	Stop int
}

Signal pass signal from client to server.

Jump to

Keyboard shortcuts

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