MCPcopy
hub / github.com/eth0izzle/shhgit / GetSession

Function GetSession

core/session.go:125–148  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

123}
124
125func GetSession() *Session {
126 sessionSync.Do(func() {
127 session = &Session{
128 Context: context.Background(),
129 Repositories: make(chan int64, 1000),
130 Gists: make(chan string, 100),
131 }
132
133 if session.Options, err = ParseOptions(); err != nil {
134 fmt.Println(err)
135 os.Exit(1)
136 }
137
138 if session.Config, err = ParseConfig(); err != nil {
139 fmt.Println(err)
140 os.Exit(1)
141 }
142
143 session.Version = Version
144 session.Start()
145 })
146
147 return session
148}

Callers 4

main.goFile · 0.92
GetRepositoriesFunction · 0.85
GetGistsFunction · 0.85
LogIfErrorFunction · 0.85

Calls 3

ParseOptionsFunction · 0.85
ParseConfigFunction · 0.85
StartMethod · 0.80

Tested by

no test coverage detected