Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AesSecretKey = []byte("qNhdOJbZls1q2BhH2htNTlZKDX9nFHEi") AesIV = []byte("aQFNUBsnAZFJoIUe") )
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct { *sync.Mutex //需要三个receive,deliver,content NodeMap map[NodeKey]TransformerNode Crontab *cron.Cron }
func NewManager ¶
func NewManager(esSecretKey, aesIV []byte, fileDir string, receiveColumnNumber int, receiveMatcher []string, submitColumnNumber int, submitMatcher []string, deliverColumnNumber int, deliverMatcher []string) *Manager
mdl.receive.log mdl.submit.log mdl.deliver.log submitColumnNumber int,submitMatcher []string 11 deliverColumnNumber int,deliverMatcher []string 2
type Node ¶
type Node struct { *sync.Mutex //文件名 例如mdl.receive.log 后面需要加上日期完整 FileNamePrefix string //文件保存的目录 FileDir string //文件 第一行标题栏 FileHeader string //当前的写入文件 Current *os.File //行分隔符 Splitter string //分隔后匹配第多少行,从0开始计数 ColumnNumber int //匹配内容字符串 Matcher []string //加密密钥 AesSecretKey []byte //偏移量 AesIV []byte // SuccCount int64 TotalCount int64 }
func (*Node) JudgeMessage ¶
func (*Node) PrettyPrint ¶
func (n *Node) PrettyPrint()
type TransformerManager ¶
Click to show internal directories.
Click to hide internal directories.