service.go 352 Bytes
Newer Older
qiuqunfeng's avatar
qiuqunfeng committed
1 2 3 4 5 6 7 8
package service

import "context"

type Service interface {
	// QueryIP(ip string) (*model.IPInfo, error)
	GetWaf(ctx context.Context, gatewayName string) (*Waf, error)
	CreateWaf(ctx context.Context, req *CreateWafReq) (*Waf, error)
qiuqunfeng's avatar
commit  
qiuqunfeng committed
9
	UpdateMode(ctx context.Context, req *UpdateModeReq) (*Waf, error)
qiuqunfeng's avatar
commit  
qiuqunfeng committed
10
	SaveRuleCategoryToDB(ctx context.Context) error
qiuqunfeng's avatar
qiuqunfeng committed
11
}