域名服务增加访问日志

This commit is contained in:
GoEdgeLab
2021-06-02 11:53:24 +08:00
parent b4bdf7ba8f
commit 637193a270
17 changed files with 829 additions and 121 deletions

View File

@@ -5,7 +5,7 @@ import (
"github.com/TeaOSLab/EdgeCommon/pkg/rpc/pb"
)
// 转换成PB对象
// ToPB 转换成PB对象
func (this *HTTPAccessLog) ToPB() (*pb.HTTPAccessLog, error) {
p := &pb.HTTPAccessLog{}
err := json.Unmarshal([]byte(this.Content), p)