itd/api/notify.go

16 lines
243 B
Go
Raw Normal View History

2021-10-24 01:41:03 +00:00
package api
2023-01-03 06:30:17 +00:00
import (
"context"
2023-04-21 02:54:58 +00:00
"go.elara.ws/itd/internal/rpc"
2023-01-03 06:30:17 +00:00
)
2022-05-01 22:22:28 +00:00
func (c *Client) Notify(ctx context.Context, title, body string) error {
2023-01-03 06:30:17 +00:00
_, err := c.client.Notify(ctx, &rpc.NotifyRequest{
Title: title,
Body: body,
})
return err
}