Fix stutter
This commit is contained in:
parent
b206661b37
commit
bc2b82cb33
@ -23,7 +23,7 @@ func main() {
|
|||||||
|
|
||||||
conf.Parse()
|
conf.Parse()
|
||||||
|
|
||||||
m := messenger.New(messenger.MessengerOptions{
|
m := messenger.New(messenger.Options{
|
||||||
Verify: *verify,
|
Verify: *verify,
|
||||||
VerifyToken: *verifyToken,
|
VerifyToken: *verifyToken,
|
||||||
Token: *pageToken,
|
Token: *pageToken,
|
||||||
|
@ -12,8 +12,8 @@ const (
|
|||||||
WebhookURL = "/webhook"
|
WebhookURL = "/webhook"
|
||||||
)
|
)
|
||||||
|
|
||||||
// MessengerOptions are the settings used when creating a Messenger client.
|
// Options are the settings used when creating a Messenger client.
|
||||||
type MessengerOptions struct {
|
type Options struct {
|
||||||
// Verify sets whether or not to be in the "verify" mode. Used for
|
// Verify sets whether or not to be in the "verify" mode. Used for
|
||||||
// verifying webhooks on the Facebook Developer Portal.
|
// verifying webhooks on the Facebook Developer Portal.
|
||||||
Verify bool
|
Verify bool
|
||||||
@ -38,8 +38,8 @@ type Messenger struct {
|
|||||||
token string
|
token string
|
||||||
}
|
}
|
||||||
|
|
||||||
// New creates a new Messenger. You pass in MessengerOptions in order to affect settings.
|
// New creates a new Messenger. You pass in Options in order to affect settings.
|
||||||
func New(mo MessengerOptions) *Messenger {
|
func New(mo Options) *Messenger {
|
||||||
m := &Messenger{
|
m := &Messenger{
|
||||||
mux: http.NewServeMux(),
|
mux: http.NewServeMux(),
|
||||||
token: mo.Token,
|
token: mo.Token,
|
||||||
|
Loading…
Reference in New Issue
Block a user