Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
skyhackvip committed Nov 29, 2023
1 parent 16e90a9 commit c8b6c5e
Show file tree
Hide file tree
Showing 51 changed files with 552 additions and 83 deletions.
12 changes: 12 additions & 0 deletions api/engine_handler.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
// Copyright (c) 2023
//
// @author 贺鹏Kavin
// 微信公众号:技术岁月
// https://github.com/skyhackvip/risk_engine
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
package api

import (
Expand Down
12 changes: 12 additions & 0 deletions api/router.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
// Copyright (c) 2023
//
// @author 贺鹏Kavin
// 微信公众号:技术岁月
// https://github.com/skyhackvip/risk_engine
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
package api

import (
Expand Down
12 changes: 12 additions & 0 deletions cmd/risk_engine/engine.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
// Copyright (c) 2023
//
// @author 贺鹏Kavin
// 微信公众号:技术岁月
// https://github.com/skyhackvip/risk_engine
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
package main

import (
Expand Down
12 changes: 12 additions & 0 deletions configs/config.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
// Copyright (c) 2023
//
// @author 贺鹏Kavin
// 微信公众号:技术岁月
// https://github.com/skyhackvip/risk_engine
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
package configs

import (
Expand Down
12 changes: 12 additions & 0 deletions configs/const.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
// Copyright (c) 2023
//
// @author 贺鹏Kavin
// 微信公众号:技术岁月
// https://github.com/skyhackvip/risk_engine
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
package configs

//all operators
Expand Down
12 changes: 12 additions & 0 deletions core/abtest.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
// Copyright (c) 2023
//
// @author 贺鹏Kavin
// 微信公众号:技术岁月
// https://github.com/skyhackvip/risk_engine
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
package core

import (
Expand Down
12 changes: 12 additions & 0 deletions core/common.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
// Copyright (c) 2023
//
// @author 贺鹏Kavin
// 微信公众号:技术岁月
// https://github.com/skyhackvip/risk_engine
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
package core

import (
Expand Down
12 changes: 12 additions & 0 deletions core/conditional.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
// Copyright (c) 2023
//
// @author 贺鹏Kavin
// 微信公众号:技术岁月
// https://github.com/skyhackvip/risk_engine
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
package core

import (
Expand Down
12 changes: 12 additions & 0 deletions core/dsl.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
// Copyright (c) 2023
//
// @author 贺鹏Kavin
// 微信公众号:技术岁月
// https://github.com/skyhackvip/risk_engine
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
package core

import (
Expand Down
12 changes: 12 additions & 0 deletions core/end.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
// Copyright (c) 2023
//
// @author 贺鹏Kavin
// 微信公众号:技术岁月
// https://github.com/skyhackvip/risk_engine
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
package core

import (
Expand Down
12 changes: 12 additions & 0 deletions core/feature.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
// Copyright (c) 2023
//
// @author 贺鹏Kavin
// 微信公众号:技术岁月
// https://github.com/skyhackvip/risk_engine
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
package core

import (
Expand Down
12 changes: 12 additions & 0 deletions core/feature_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
// Copyright (c) 2023
//
// @author 贺鹏Kavin
// 微信公众号:技术岁月
// https://github.com/skyhackvip/risk_engine
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
package core

import (
Expand Down
12 changes: 12 additions & 0 deletions core/flow.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
// Copyright (c) 2023
//
// @author 贺鹏Kavin
// 微信公众号:技术岁月
// https://github.com/skyhackvip/risk_engine
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
package core

import (
Expand Down
12 changes: 12 additions & 0 deletions core/inode.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
// Copyright (c) 2023
//
// @author 贺鹏Kavin
// 微信公众号:技术岁月
// https://github.com/skyhackvip/risk_engine
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
package core

//各类型节点实现该接口
Expand Down
12 changes: 12 additions & 0 deletions core/kernel.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
// Copyright (c) 2023
//
// @author 贺鹏Kavin
// 微信公众号:技术岁月
// https://github.com/skyhackvip/risk_engine
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
package core

import (
Expand Down
12 changes: 12 additions & 0 deletions core/matrix.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
// Copyright (c) 2023
//
// @author 贺鹏Kavin
// 微信公众号:技术岁月
// https://github.com/skyhackvip/risk_engine
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
package core

import (
Expand Down
12 changes: 12 additions & 0 deletions core/pipeline.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
// Copyright (c) 2023
//
// @author 贺鹏Kavin
// 微信公众号:技术岁月
// https://github.com/skyhackvip/risk_engine
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
package core

import (
Expand Down
12 changes: 12 additions & 0 deletions core/ruleset.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
// Copyright (c) 2023
//
// @author 贺鹏Kavin
// 微信公众号:技术岁月
// https://github.com/skyhackvip/risk_engine
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
package core

import (
Expand Down
12 changes: 12 additions & 0 deletions core/scorecard.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
// Copyright (c) 2023
//
// @author 贺鹏Kavin
// 微信公众号:技术岁月
// https://github.com/skyhackvip/risk_engine
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
package core

import (
Expand Down
12 changes: 12 additions & 0 deletions core/start.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
// Copyright (c) 2023
//
// @author 贺鹏Kavin
// 微信公众号:技术岁月
// https://github.com/skyhackvip/risk_engine
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
package core

import (
Expand Down
12 changes: 12 additions & 0 deletions core/tree.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
// Copyright (c) 2023
//
// @author 贺鹏Kavin
// 微信公众号:技术岁月
// https://github.com/skyhackvip/risk_engine
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
package core

import (
Expand Down
12 changes: 12 additions & 0 deletions core/udf/avg.go
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
// Copyright (c) 2023
//
// @author 贺鹏Kavin
// 微信公众号:技术岁月
// https://github.com/skyhackvip/risk_engine
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
package udf
12 changes: 12 additions & 0 deletions core/udf/max.go
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
// Copyright (c) 2023
//
// @author 贺鹏Kavin
// 微信公众号:技术岁月
// https://github.com/skyhackvip/risk_engine
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
package udf
12 changes: 12 additions & 0 deletions core/udf/min.go
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
// Copyright (c) 2023
//
// @author 贺鹏Kavin
// 微信公众号:技术岁月
// https://github.com/skyhackvip/risk_engine
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
package udf
12 changes: 12 additions & 0 deletions core/udf/sum.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
// Copyright (c) 2023
//
// @author 贺鹏Kavin
// 微信公众号:技术岁月
// https://github.com/skyhackvip/risk_engine
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
package udf

import (
Expand Down
Loading

0 comments on commit c8b6c5e

Please sign in to comment.