mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-19 21:45:17 +00:00
M3O SDK Concept
This commit is contained in:
19
examples/otp/main.go
Normal file
19
examples/otp/main.go
Normal 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()
|
||||
}
|
||||
Reference in New Issue
Block a user