Documentation ¶
Index ¶
- func GetClientCert(ctx context.Context, req *pb.GetClientCertRequest) (*pb.GetClientCertResponse, error)
- func HandleLogin(ctx *gin.Context) (interface{}, error)
- func InitAuth()
- func LoginHandler(c context.Context, req *pb.LoginRequest) (*pb.LoginResponse, error)
- func MakeGinHandlerFunc(handler HandlerFunc) gin.HandlerFunc
- func RegisterHandler(c context.Context, req *pb.RegisterRequest) (*pb.RegisterResponse, error)
- func RemoveJWTHandler(c *gin.Context)
- type HTTPError
- type HandlerFunc
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClientCert ¶
func GetClientCert(ctx context.Context, req *pb.GetClientCertRequest) (*pb.GetClientCertResponse, error)
func HandleLogin ¶
func LoginHandler ¶
func LoginHandler(c context.Context, req *pb.LoginRequest) (*pb.LoginResponse, error)
func MakeGinHandlerFunc ¶
func MakeGinHandlerFunc(handler HandlerFunc) gin.HandlerFunc
func RegisterHandler ¶
func RegisterHandler(c context.Context, req *pb.RegisterRequest) (*pb.RegisterResponse, error)
func RemoveJWTHandler ¶
Types ¶
type HandlerFunc ¶
Click to show internal directories.
Click to hide internal directories.