iotscanner

package module
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

README

gobinscan

导入

··· go get github.com/neumannlyu/gobinscan ···

使用方法

start := time.Now()
    InitConfig(
        0xffffffff,
        "../zy.bin",
        "postgresql",
        "172.16.5.114",
        "ly",
        "123456",
        "lydb",
        golog.LOGLEVEL_ALL)
    // cfg.BinExtractedDir = "/Users/neumann/MyBak/Cimer/2023/电力物联网平台/代码/123"
    // InitConfig("../zy.bin",
    //     "mysql",
    //     "172.16.2.115:30006",
    //     "root",
    //     "avtNroKYeB6xXrR3",
    //     "asset_map",
    //     golog.LOGLEVEL_ALL)
    fmt.Printf("Run().ToJson(): %v\n", Run().ToJson())
    elapsed := time.Since(start)
    fmt.Printf("代码执行时间为:%s\n", elapsed)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConfig

func InitConfig(
	runModule uint,
	binfile string,
	databasePlatform string,
	databaseHost string,
	databaseUser string,
	databasePassword string,
	databaseName string,
	loglevel int) *config.CFG

first call configuration initial

func Run

func Run() common.Report

Types

This section is empty.

Directories

Path Synopsis
pkg
sql

Jump to

Keyboard shortcuts

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