testing
This commit is contained in:
parent
8cb734da7f
commit
72e5387a51
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -60,3 +60,7 @@ crashlytics-build.properties
|
|||
fabric.properties
|
||||
|
||||
.idea/ 제거할 예정
|
||||
|
||||
|
||||
.iml
|
||||
.idea/
|
25
agent.go
25
agent.go
|
@ -5,19 +5,40 @@ import (
|
|||
"loafle.com/overflow/agent_api/observer/messages"
|
||||
_ "loafle.com/overflow/config_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/event_sender"
|
||||
_ "loafle.com/overflow/long_poller_go"
|
||||
"time"
|
||||
"sync"
|
||||
"log"
|
||||
|
||||
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
log.SetPrefix("Agent : ")
|
||||
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
7
agent_test.go
Normal file
|
@ -0,0 +1,7 @@
|
|||
package main
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestFFF(t *testing.T) {
|
||||
t.Log("aaaa")
|
||||
}
|
Loading…
Reference in New Issue
Block a user