Brijesh's Git Server — k3yst0n3 @ 47493b53290ea602660736c157d63e1fa708e704

auth/cmd/main.go (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
package main

import (
	"fmt"
	"keystone_auth/rpc"
	"keystone_auth/src"
	"net/http"
)

func main() {
	server := &src.Server{}
	grpcHandler := rpc.NewAuthServiceServer(server)

	err := http.ListenAndServe(":8080", grpcHandler)
	if err != nil {
		fmt.Println("Error starting server:", err)
		return
	}
}