Fix golint warnings for publisher package (#1822)
Co-authored-by: Shajitha Mohammed <shajithamohammed28@gmail.com>
This commit is contained in:
co-authored by
Shajitha Mohammed
parent
e65bfcdacf
commit
fe5542845e
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user