service.go 373 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 8 9
	GetWaf(ctx context.Context, gatewayName string) (*WafService, error)
	CreateWaf(ctx context.Context, req *CreateWafReq) (*WafService, error)
	UpdateMode(ctx context.Context, req *UpdateModeReq) (*WafService, error)
qiuqunfeng's avatar
commit  
qiuqunfeng committed
10
	SaveRuleCategoryToDB(ctx context.Context) error
qiuqunfeng's avatar
qiuqunfeng committed
11
}