19 lines
356 B
Go
19 lines
356 B
Go
//go:build !windows && !linux
|
|
|
|
package control
|
|
|
|
import (
|
|
"context"
|
|
"log/slog"
|
|
)
|
|
|
|
// Serve is a no-op on platforms without a control channel.
|
|
func Serve(ctx context.Context, h Handler, log *slog.Logger) error {
|
|
return ErrUnavailable
|
|
}
|
|
|
|
// Ask always reports the channel as unavailable.
|
|
func Ask(cmd string) (string, error) {
|
|
return "", ErrUnavailable
|
|
}
|