reg

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenKey

func GenKey(jobuid, source, pipeline string) []byte

Types

type DbEngine

type DbEngine interface {
	FindAll() ([]Registry, error)
	FindBy(jobUid string, sourceName string, pipelineName string) (Registry, error)
	Insert(registries []Registry) error
	Update(registries []Registry) error
	UpdateFileName(rs []Registry) error
	Delete(r Registry) error
	DeleteBy(jobUid string, sourceName string, pipelineName string) error
	Close() error
}

type Registry

type Registry struct {
	Id           int    `json:"id"`
	PipelineName string `json:"pipelineName"`
	SourceName   string `json:"sourceName"`
	Filename     string `json:"filename"`
	JobUid       string `json:"jobUid"`
	Offset       int64  `json:"offset"`
	CollectTime  string `json:"collectTime"`
	Version      string `json:"version"`
	LineNumber   int64  `json:"lineNumber"`
}

func (*Registry) CheckIntegrity

func (r *Registry) CheckIntegrity() bool

func (*Registry) Key

func (r *Registry) Key() []byte

func (*Registry) Merge

func (r *Registry) Merge(registry Registry)

func (*Registry) Value

func (r *Registry) Value() []byte

type RegistryList

type RegistryList []Registry

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL