Socket
Book a DemoInstallSign in
Socket

github.com/smtp-http/filenotify_go

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/smtp-http/filenotify_go

Source
Go
Version
v0.0.0-20190114073526-8d93e2ead608
Version published
Created
Source

filenotify_go

file notify in golang

Usage

go get -u github.com/smtp-http/filenotify_go
package main

import (
	"github.com/smtp-http/filenotify_go/notify"
	"github.com/smtp-http/filenotify_go/conn"
	"github.com/smtp-http/filenotify_go/config"
)


func main() {
	loader := config.GetLoader()
	loader.Load("./config.json",config.GetConfig())


	monitor := notify.GetFileMonitorInstance()
	conn.GetHttpClientInstance().HttpSetUrl(config.GetConfig().Url)
	tcpserver := conn.GetServerInstance()
	go tcpserver.ServerRun(config.GetConfig().Ip,config.GetConfig().Port)

	monitor.SetTcpserver(tcpserver)
	monitor.Monitor()
}

FAQs

Package last updated on 14 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts