Documentation
¶
Overview ¶
Package caststream hosts lightweight remote streaming servers used by torque. It can expose log streams over WebSocket (e.g. `torque logs --ws-listen`) and render the deploy viewer HTML shell used by `torque apply --ui` / `torque delete --ui`.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*Server)
Option configures the caststream server.
func WithDeployUI ¶
func WithDeployUI() Option
WithDeployUI switches the server into deploy webcast mode.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server exposes a lightweight HTML + WebSocket view of torque streams.
func (*Server) HandleDeployEvent ¶
func (s *Server) HandleDeployEvent(event deploy.StreamEvent)
HandleDeployEvent satisfies deploy.StreamObserver so deploy applies can mirror structured events.
func (*Server) ObserveLog ¶
Click to show internal directories.
Click to hide internal directories.