password generator (#395)

This commit is contained in:
Asim Aslam
2022-03-02 10:11:46 +00:00
committed by GitHub
parent 9b61a8d28e
commit 7ab702dd5b
13 changed files with 466 additions and 0 deletions

25
password/main.go Normal file
View File

@@ -0,0 +1,25 @@
package main
import (
"github.com/micro/services/password/handler"
pb "github.com/micro/services/password/proto"
"github.com/micro/micro/v3/service"
"github.com/micro/micro/v3/service/logger"
)
func main() {
// Create service
srv := service.New(
service.Name("password"),
service.Version("latest"),
)
// Register handler
pb.RegisterPasswordHandler(srv.Server(), new(handler.Password))
// Run service
if err := srv.Run(); err != nil {
logger.Fatal(err)
}
}