worker

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MultiWriterWithWebsocket

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

MultiWriterWithWebsocket wraps a multiwriter and provides websocket functionality

func NewMultiWriterWithWebsocket

func NewMultiWriterWithWebsocket(writer io.Writer, prefix string) *MultiWriterWithWebsocket

func (*MultiWriterWithWebsocket) SetPrefix

func (m *MultiWriterWithWebsocket) SetPrefix(prefix string)

SetPrefix sets the prefix for the writer

func (*MultiWriterWithWebsocket) SetWebsocket

func (m *MultiWriterWithWebsocket) SetWebsocket(ws *websocket.Conn)

func (*MultiWriterWithWebsocket) Write

func (m *MultiWriterWithWebsocket) Write(p []byte) (n int, err error)

func (*MultiWriterWithWebsocket) WriteStr

func (m *MultiWriterWithWebsocket) WriteStr(s string) (n int, err error)

WriteStr writes a string to the writer, handling the byte conversion internally

type Worker

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

func NewWorker

func NewWorker(endpoint, workerID string) *Worker

func (*Worker) Start

func (w *Worker) Start(ctx context.Context) error

Jump to

Keyboard shortcuts

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