daemon: Add clear logs

This commit is contained in:
世界
2025-10-22 23:26:05 +08:00
parent a930356b04
commit a5fb467db2
6 changed files with 100 additions and 42 deletions

View File

@@ -410,6 +410,16 @@ func (c *CommandClient) ServiceClose() error {
return err
}
func (c *CommandClient) ClearLogs() error {
client, err := c.getClientForCall()
if err != nil {
return err
}
_, err = client.ClearLogs(context.Background(), &emptypb.Empty{})
return err
}
func (c *CommandClient) GetSystemProxyStatus() (*SystemProxyStatus, error) {
client, err := c.getClientForCall()
if err != nil {