Rename Send() to SendRequest()

Eventually Send() will probably be a wrapper for messages with type send
This commit is contained in:
Finn 2018-10-08 17:51:56 -07:00
parent 6b277642cf
commit 86553ad5a1
2 changed files with 3 additions and 3 deletions

View file

@ -56,7 +56,7 @@ var sendCmd = &cobra.Command{
if attachment != "" {
request.AttachmentFilenames = []string{attachment}
}
s.Send(request)
s.SendRequest(request)
},
}

View file

@ -43,8 +43,8 @@ func (s *Signald) Listen(c chan interface{}) {
}
}
// Send sends a request to signald.
func (s *Signald) Send(request Request) {
// SendRequest sends a request to signald. Mostly used interally.
func (s *Signald) SendRequest(request Request) {
b, err := json.Marshal(request)
crash(err)
log.Print("Sending ", string(b))