program_interface.go 250 B

1234567891011
  1. package zdaemon
  2. import "io"
  3. type ProgramInterface interface {
  4. SetLocalLogWriter(writer io.Writer)
  5. Start() error
  6. Stop() error
  7. OtherOperation(op string, args []string) string
  8. GetStatus() (status string, hasExtra bool, extra map[string]string)
  9. }