mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-11 18:44:26 +00:00
20 lines
345 B
Go
20 lines
345 B
Go
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()
|
|
}
|