itd/api/notify.go
2023-04-20 19:54:58 -07:00

16 lines
243 B
Go

package api
import (
"context"
"go.elara.ws/itd/internal/rpc"
)
func (c *Client) Notify(ctx context.Context, title, body string) error {
_, err := c.client.Notify(ctx, &rpc.NotifyRequest{
Title: title,
Body: body,
})
return err
}