socket

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2025 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const EOL = "\r\n"
View Source
const ProtoVersion = "1.0"

Variables

View Source
var ServerVersion = "Chronalys/1.0"

Functions

func ServeSocket

func ServeSocket(ctx context.Context) (func() error, error)

Types

type ErrorCode

type ErrorCode string
const (
	OK      ErrorCode = "OK"
	Info    ErrorCode = "INFO"
	Warning ErrorCode = "WARN"
	Fatal   ErrorCode = "FATAL"
)

type Scanner

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

func NewScanner

func NewScanner(reader *bufio.ReadWriter) *Scanner

func (*Scanner) Scan

func (s *Scanner) Scan(ctx context.Context) (chan *commands.CommandString, chan error)

type Socket

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

func (*Socket) Cleanup

func (s *Socket) Cleanup()

func (*Socket) HandleConnection

func (s *Socket) HandleConnection(conn net.Conn, ctx context.Context)

Jump to

Keyboard shortcuts

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