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

import "context"

type Service interface {
	// QueryIP(ip string) (*model.IPInfo, error)
qiuqunfeng's avatar
commit  
qiuqunfeng committed
7
	GetWaf(ctx context.Context, regionCode, namespace, gatewayName string) (*WafService, error)
qiuqunfeng's avatar
commit  
qiuqunfeng committed
8 9
	CreateWaf(ctx context.Context, req *CreateWafReq) (*WafService, error)
	UpdateMode(ctx context.Context, req *UpdateModeReq) (*WafService, error)
qiuqunfeng's avatar
commit  
qiuqunfeng committed
10
	UpdateRule(ctx context.Context, req *RuleRequest) error
qiuqunfeng's avatar
commit  
qiuqunfeng committed
11
	SaveRuleCategoryToDB(ctx context.Context) error
qiuqunfeng's avatar
commit  
qiuqunfeng committed
12 13 14 15
	EnableListenerWaf(ctx context.Context, req *EnableListenerWafReq) error
	EnableGatewayWaf(ctx context.Context, req *EnableGatewayWafReq) error
	DeleteGatewayWaf(ctx context.Context, req *GatewateInfo) error
	DeleteListenerWaf(ctx context.Context, req *DeleteListenerReq) error
qiuqunfeng's avatar
qiuqunfeng committed
16
}