diff --git a/Gopkg.lock b/Gopkg.lock new file mode 100644 index 0000000..6985569 --- /dev/null +++ b/Gopkg.lock @@ -0,0 +1,88 @@ +# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. + + +[[projects]] + name = "github.com/davecgh/go-spew" + packages = ["spew"] + revision = "8991bc29aa16c548c550c7ff78260e27b9ab7c73" + version = "v1.1.1" + +[[projects]] + branch = "master" + name = "github.com/gin-contrib/sse" + packages = ["."] + revision = "22d885f9ecc78bf4ee5d72b937e4bbcdc58e8cae" + +[[projects]] + name = "github.com/gin-gonic/gin" + packages = [ + ".", + "binding", + "json", + "render" + ] + revision = "b869fe1415e4b9eb52f247441830d502aece2d4d" + version = "v1.3.0" + +[[projects]] + name = "github.com/go-test/deep" + packages = ["."] + revision = "6592d9cc0a499ad2d5f574fde80a2b5c5cc3b4f5" + version = "v1.0.1" + +[[projects]] + name = "github.com/golang/protobuf" + packages = ["proto"] + revision = "5a0f697c9ed9d68fef0116532c6e05cfeae00e55" + +[[projects]] + name = "github.com/json-iterator/go" + packages = ["."] + revision = "36b14963da70d11297d313183d7e6388c8510e1e" + version = "1.0.0" + +[[projects]] + name = "github.com/mattn/go-isatty" + packages = ["."] + revision = "57fdcb988a5c543893cc61bce354a6e24ab70022" + +[[projects]] + name = "github.com/pmezard/go-difflib" + packages = ["difflib"] + revision = "792786c7400a136282c1664665ae0a8db921c6c2" + version = "v1.0.0" + +[[projects]] + name = "github.com/stretchr/testify" + packages = ["assert"] + revision = "f35b8ab0b5a2cef36673838d662e249dd9c94686" + version = "v1.2.2" + +[[projects]] + name = "github.com/ugorji/go" + packages = ["codec"] + revision = "c88ee250d0221a57af388746f5cf03768c21d6e2" + +[[projects]] + branch = "master" + name = "golang.org/x/sys" + packages = ["unix"] + revision = "90868a75fefd03942536221d7c0e2f84ec62a668" + +[[projects]] + name = "gopkg.in/go-playground/validator.v8" + packages = ["."] + revision = "5f57d2222ad794d0dffb07e664ea05e2ee07d60c" + version = "v8.18.1" + +[[projects]] + name = "gopkg.in/yaml.v2" + packages = ["."] + revision = "a5b47d31c556af34a302ce5d659e6fea44d90de0" + +[solve-meta] + analyzer-name = "dep" + analyzer-version = 1 + inputs-digest = "26ffe61e290093ebbe183e886c114445646d66ecd7169aa7889a617ccf497d8e" + solver-name = "gps-cdcl" + solver-version = 1 diff --git a/Gopkg.toml b/Gopkg.toml new file mode 100644 index 0000000..2aa1291 --- /dev/null +++ b/Gopkg.toml @@ -0,0 +1,42 @@ +# Gopkg.toml example +# +# Refer to https://golang.github.io/dep/docs/Gopkg.toml.html +# for detailed Gopkg.toml documentation. +# +# required = ["github.com/user/thing/cmd/thing"] +# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"] +# +# [[constraint]] +# name = "github.com/user/project" +# version = "1.0.0" +# +# [[constraint]] +# name = "github.com/user/project2" +# branch = "dev" +# source = "github.com/myfork/project2" +# +# [[override]] +# name = "github.com/x/y" +# version = "2.4.0" +# +# [prune] +# non-go = false +# go-tests = true +# unused-packages = true + + +[[constraint]] + name = "github.com/gin-gonic/gin" + version = "1.3.0" + +[[constraint]] + name = "github.com/go-test/deep" + version = "1.0.1" + +[[constraint]] + name = "github.com/stretchr/testify" + version = "1.2.2" + +[prune] + go-tests = true + unused-packages = true diff --git a/README.md b/README.md index 7370f47..c993ac5 100644 --- a/README.md +++ b/README.md @@ -1,22 +1,29 @@ # Dialogflow Go Webhook -![Go Version](https://img.shields.io/badge/go-1.9-brightgreen.svg) ![Go Version](https://img.shields.io/badge/go-1.10-brightgreen.svg) +![Go Version](https://img.shields.io/badge/go-1.11-brightgreen.svg) [![Go Report Card](https://goreportcard.com/badge/github.com/leboncoin/dialogflow-go-webhook)](https://goreportcard.com/report/github.com/leboncoin/dialogflow-go-webhook) [![Build Status](https://drone.depado.eu/api/badges/leboncoin/dialogflow-go-webhook/status.svg)](https://drone.depado.eu/leboncoin/dialogflow-go-webhook) [![codecov](https://codecov.io/gh/leboncoin/dialogflow-go-webhook/branch/master/graph/badge.svg)](https://codecov.io/gh/leboncoin/dialogflow-go-webhook) [![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/leboncoin/dialogflow-go-webhook/blob/master/LICENSE) [![Godoc](https://godoc.org/github.com/leboncoin/dialogflow-go-webhook?status.svg)](https://godoc.org/github.com/leboncoin/dialogflow-go-webhook) - Simple library to create compatible DialogFlow v2 webhooks using Go. This package is only intended to create webhooks, it doesn't implement the whole DialogFlow API. +# :no_entry: Deprecation Notice + +This project is no longer useful since the release of the [Go SDK](https://github.com/GoogleCloudPlatform/google-cloud-go/tree/master/dialogflow/apiv2) for Dialogflow's v2 API. See [this article](https://medium.com/leboncoin-engineering-blog/dialogflow-webhook-golang-and-protobuf-6269269f17f6) for a tutorial on how to use the protobuf definition to handle webhook. + +# Table of Content + - [Dialogflow Go Webhook](#dialogflow-go-webhook) +- [:no_entry: Deprecation Notice](#no_entry-deprecation-notice) +- [Table of Content](#table-of-content) - [Introduction](#introduction) - [Goal of this package](#goal-of-this-package) - [Disclaimer](#disclaimer) diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..03e6346 --- /dev/null +++ b/go.mod @@ -0,0 +1,17 @@ +module github.com/leboncoin/dialogflow-go-webhook + +require ( + github.com/davecgh/go-spew v1.1.1 + github.com/gin-contrib/sse v0.0.0-20170109093832-22d885f9ecc7 + github.com/gin-gonic/gin v1.3.0 + github.com/go-test/deep v1.0.1 + github.com/golang/protobuf v0.0.0-20170601230230-5a0f697c9ed9 + github.com/json-iterator/go v0.0.0-20170829155851-36b14963da70 + github.com/mattn/go-isatty v0.0.0-20170307163044-57fdcb988a5c + github.com/pmezard/go-difflib v1.0.0 + github.com/stretchr/testify v1.2.2 + github.com/ugorji/go v0.0.0-20170215201144-c88ee250d022 + golang.org/x/sys v0.0.0-20180924175946-90868a75fefd + gopkg.in/go-playground/validator.v8 v8.18.1 + gopkg.in/yaml.v2 v2.0.0-20160928153709-a5b47d31c556 +) diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..2c4e6be --- /dev/null +++ b/go.sum @@ -0,0 +1,13 @@ +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/gin-contrib/sse v0.0.0-20170109093832-22d885f9ecc7/go.mod h1:VJ0WA2NBN22VlZ2dKZQPAPnyWw5XTlK1KymzLKsr59s= +github.com/gin-gonic/gin v1.3.0/go.mod h1:7cKuhb5qV2ggCFctp2fJQ+ErvciLZrIeoOSOm6mUr7Y= +github.com/go-test/deep v1.0.1/go.mod h1:wGDj63lr65AM2AQyKZd/NYHGb0R+1RLqB8NKt3aSFNA= +github.com/golang/protobuf v0.0.0-20170601230230-5a0f697c9ed9/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/json-iterator/go v0.0.0-20170829155851-36b14963da70/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= +github.com/mattn/go-isatty v0.0.0-20170307163044-57fdcb988a5c/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= +github.com/ugorji/go v0.0.0-20170215201144-c88ee250d022/go.mod h1:hnLbHMwcvSihnDhEfx2/BzKp2xb0Y+ErdfYcrs9tkJQ= +golang.org/x/sys v0.0.0-20180924175946-90868a75fefd/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +gopkg.in/go-playground/validator.v8 v8.18.1/go.mod h1:RX2a/7Ha8BgOhfk7j780h4/u/RRjR0eouCJSH80/M2Y= +gopkg.in/yaml.v2 v2.0.0-20160928153709-a5b47d31c556/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74=