Documentation
¶
Index ¶
- type Writer
- func (s *Writer) Send(data interface{})
- func (s *Writer) SendDone(extra map[string]string)
- func (s *Writer) SendError(message string)
- func (s *Writer) SendLog(message string)
- func (s *Writer) SendStatus(status string, extra map[string]string)
- func (s *Writer) StreamCmd(cmd *exec.Cmd) error
- func (s *Writer) StreamCmdFunc(cmd *exec.Cmd, onLine func(line string) bool) error
- func (s *Writer) WriteEvent(event string, data interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func NewWriter ¶
func NewWriter(w http.ResponseWriter) *Writer
func (*Writer) StreamCmdFunc ¶
func (*Writer) WriteEvent ¶
Click to show internal directories.
Click to hide internal directories.