Documentation ¶
Index ¶
- Constants
- Variables
- func AuthMiddlewareWithCtx(svcCtx *svc.ServiceContext) rest.Middleware
- func CreateToken(authData *AuthData, config *config.Config) (string, error)
- func IsSessionError(err error) bool
- func ParseConnectDBParams(params *types.ConnectDBParams, config *config.Config) (string, error)
- type AuthData
- type CtxKeyUserInfo
Constants ¶
View Source
const GraphServiceTimeout = 8 * time.Hour
set the timeout for the graph service: 8 hours once the timeout is reached, the connection will be closed all requests running ngql will be failed, so keepping a long timeout is necessary, make the connection alive
Variables ¶
Functions ¶
func AuthMiddlewareWithCtx ¶
func AuthMiddlewareWithCtx(svcCtx *svc.ServiceContext) rest.Middleware
func IsSessionError ¶
func ParseConnectDBParams ¶
Types ¶
type AuthData ¶
type CtxKeyUserInfo ¶
type CtxKeyUserInfo struct{}
Click to show internal directories.
Click to hide internal directories.