// NewAuthInterceptor returns a new AuthInterceptor

NewAuthInterceptor returns a new AuthInterceptor
// NewAuthInterceptor returns a new AuthInterceptor
func NewAuthInterceptor(jwtManager *JWTManager, authorizer UserAuthorizer) *AuthInterceptor {
	return &AuthInterceptor{
		jwtManager,
		map[string]PermissionLevel{
			"/jungletv.JungleTV/RewardInfo":      UserPermissionLevel,
			"/jungletv.JungleTV/Withdraw":        UserPermissionLevel,
			"/jungletv.JungleTV/SendChatMessage": UserPermissionLevel,
			"/jungletv.JungleTV/SetChatNickname": UserPermissionLevel,
			"/jungletv.JungleTV/ForciblyEnqueueTicket":    AdminPermissionLevel,
			"/jungletv.JungleTV/RemoveQueueEntry":         AdminPermissionLevel,
			"/jungletv.JungleTV/RemoveChatMessage":        AdminPermissionLevel,
			"/jungletv.JungleTV/SetChatSettings":          AdminPermissionLevel,
			"/jungletv.JungleTV/SetVideoEnqueuingEnabled": AdminPermissionLevel,
			"/jungletv.JungleTV/BanUser":                  AdminPermissionLevel,
			"/jungletv.JungleTV/RemoveBan":                AdminPermissionLevel,
			"/jungletv.JungleTV/UserChatMessages":         AdminPermissionLevel,
			"/jungletv.JungleTV/DisallowedVideos":         AdminPermissionLevel,
			"/jungletv.JungleTV/AddDisallowedVideo":       AdminPermissionLevel,
			"/jungletv.JungleTV/RemoveDisallowedVideo":    AdminPermissionLevel,
			"/jungletv.JungleTV/UpdateDocument":           AdminPermissionLevel,
			"/jungletv.JungleTV/SetUserChatNickname":      AdminPermissionLevel,
			"/jungletv.JungleTV/SetPricesMultiplier":      AdminPermissionLevel,
		},
		authorizer,
	}
}
func NewAuthInterceptor ( jwtManager * JWTManager , authorizer UserAuthorizer ) * AuthInterceptor { return & AuthInterceptor { jwtManager , map [ string ] PermissionLevel { " " : UserPermissionLevel , " " : UserPermissionLevel , " " : UserPermissionLevel , " " : UserPermissionLevel , " " : AdminPermissionLevel , " " : AdminPermissionLevel , " " : AdminPermissionLevel , " " : AdminPermissionLevel , " " : AdminPermissionLevel , " " : AdminPermissionLevel , " " : AdminPermissionLevel , " " : AdminPermissionLevel , " " : AdminPermissionLevel , " " : AdminPermissionLevel , " " : AdminPermissionLevel , " " : AdminPermissionLevel , " " : AdminPermissionLevel , " " : AdminPermissionLevel , } , authorizer , } }
NewAuthInterceptor returns a new AuthInterceptor
NewAuthInterceptor returns a new AuthInterceptor