sessionutil

package
v0.0.0-...-3bfc256 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package sessionutil contains utility methods required to start session.

Package sessionutil provides utility for sessions.

Package sessionutil provides utility for sessions.

Index

Constants

This section is empty.

Variables

View Source
var SignalsByteMap = map[os.Signal]byte{
	syscall.SIGINT:  '\003',
	syscall.SIGQUIT: '\x1c',
	syscall.SIGTSTP: '\032',
}

All the signals to handles interrupt SIGINT captures Ctrl+C SIGQUIT captures Ctrl+\ SIGTSTP captures Ctrl+Z

Functions

func NewListener

func NewListener(log log.T, address string) (net.Listener, error)

NewListener starts a new socket listener on the address.

Types

type DisplayMode

type DisplayMode struct {
}

func NewDisplayMode

func NewDisplayMode(log log.T) DisplayMode

func (*DisplayMode) DisplayMessage

func (d *DisplayMode) DisplayMessage(log log.T, message message.ClientMessage)

DisplayMessage function displays the output on the screen

func (*DisplayMode) InitDisplayMode

func (d *DisplayMode) InitDisplayMode(log log.T)

Jump to

Keyboard shortcuts

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