This commit is contained in:
snoop 2017-05-11 19:29:32 +09:00
parent 8cb734da7f
commit 72e5387a51
3 changed files with 34 additions and 2 deletions

4
.gitignore vendored
View File

@ -60,3 +60,7 @@ crashlytics-build.properties
fabric.properties fabric.properties
.idea/ 제거할 예정 .idea/ 제거할 예정
.iml
.idea/

View File

@ -5,19 +5,40 @@ import (
"loafle.com/overflow/agent_api/observer/messages" "loafle.com/overflow/agent_api/observer/messages"
_ "loafle.com/overflow/config_manager_go" _ "loafle.com/overflow/config_manager_go"
_ "loafle.com/overflow/crawler_manager_go" _ "loafle.com/overflow/crawler_manager_go"
_ "loafle.com/overflow/collector" _ "loafle.com/overflow/collector_go"
_ "loafle.com/overflow/data_sender_go" _ "loafle.com/overflow/data_sender_go"
_ "loafle.com/overflow/event_sender" _ "loafle.com/overflow/event_sender"
_ "loafle.com/overflow/long_poller_go" _ "loafle.com/overflow/long_poller_go"
"time"
"sync"
"log"
) )
func main() { func main() {
log.SetPrefix("Agent : ")
initAgent() initAgent()
} }
func initAgent() { func initAgent() {
observer.Notify(messages.AGT_STARTING, "") log.Println("initAgent")
observer.Notify(messages.AGT_STARTING, "/home/snoop/develop/path/go/src/loafle.com/overflow/config_manager_go/test_agent/")
log.Println("AGT_STARTING after")
time.Sleep(time.Second * 2)
observer.Notify(messages.AGT_INITIALIZED, "")
wg := sync.WaitGroup{}
wg.Add(1)
wg.Wait()
} }

7
agent_test.go Normal file
View File

@ -0,0 +1,7 @@
package main
import "testing"
func TestFFF(t *testing.T) {
t.Log("aaaa")
}