Skip to content

Latest commit

 

History

History
79 lines (39 loc) · 1.89 KB

application.md

File metadata and controls

79 lines (39 loc) · 1.89 KB

bot

import "github.com/dueros/bot-sdk-go/bot"

application.go audio_player.go bot.go event_handler.go video_player.go

type Application struct {
    AppId              string
    DisableCertificate bool
    DisableVerifyJson  bool
    Handler            func(rawRequest string) string
}

func (*Application) ServeHTTP

func (this *Application) ServeHTTP(w http.ResponseWriter, r *http.Request)

创建一个HTTP服务

func (*Application) Start

func (this *Application) Start(host string)

启动HTTP服务

func (*Application) Verify

func (this *Application) Verify(w http.ResponseWriter, r *http.Request) bool

验证请求是否合法


Generated by godoc2md