Fix golint warnings for publisher package (#1822)

Co-authored-by: Shajitha Mohammed <shajithamohammed28@gmail.com>
This commit is contained in:
Sajitha
2020-10-27 21:19:28 +05:30
committed by GitHub
co-authored by Shajitha Mohammed
parent e65bfcdacf
commit fe5542845e
2 changed files with 12 additions and 8 deletions
+3 -1
View File
@@ -17,8 +17,10 @@ limitations under the License.
package publisher
type (
// Publisher interface wraps the Publish method that publishes an request
// with given "body" and "headers" to given "target"
Publisher interface {
// Publish an request to a "target". Target's meaning depends on the
// Publish an request to a "target". Target's meaning depends on the
// publisher: it's a URL in the case of a webhook publisher, or a queue
// name in a queue-based publisher such as NATS.
Publish(body string, headers map[string]string, target string)