M3O SDK Concept

This commit is contained in:
Ben Toogood
2020-11-25 16:06:44 +00:00
parent 7818a050c2
commit 5fa6c1244f
21 changed files with 1293 additions and 524 deletions

19
examples/otp/main.go Normal file
View File

@@ -0,0 +1,19 @@
package otp
import (
"github.com/m3o/m3o-go/examples/otp/handler"
"github.com/m3o/m3o-go/server"
"github.com/m3o/m3o-go/sms"
"github.com/m3o/m3o-go/store/keyvalue"
)
func main() {
// register the handler
server.RegisterHandler(handler.OTP{
SMS: sms.NewClient(),
Store: keyvalue.NewClient(),
})
// run the server
server.Run()
}