github.com/GuanceCloud/cliutils@v1.1.21/pipeline/ptinput/plmap/manager.go (about)

     1  // Unless explicitly stated otherwise all files in this repository are licensed
     2  // under the MIT License.
     3  // This product includes software developed at Guance Cloud (https://www.guance.com/).
     4  // Copyright 2021-present Guance, Inc.
     5  
     6  // Package plmap used to store data during pl script execution
     7  package plmap
     8  
     9  import "github.com/GuanceCloud/cliutils/point"
    10  
    11  // type PtSource [3]string // source,sub_source,tmp_source
    12  
    13  const FeedName = "pl_agg"
    14  
    15  type UploadFunc func(cat point.Category, ptID string, elem any) error
    16  
    17  type PlMapIface interface {
    18  	SetUploadFunc(UploadFunc)
    19  }