Mercurial > mercurial > hgweb_rsearcher.cgi
comparison go/client.go @ 3:db4813125eb8
many changes.
author | pyon@macmini |
---|---|
date | Thu, 11 Oct 2018 22:11:09 +0900 |
parents | eaa27e4ed5be |
children | 06342fc544e4 |
comparison
equal
deleted
inserted
replaced
2:7fe3417cefc8 | 3:db4813125eb8 |
---|---|
1 /* | 1 /* |
2 client.go : client-program. | 2 client.go : client-program. |
3 Version : 1.0 | 3 Version : 1.0a |
4 Last Change: 2018-10-01 Mon 21:45:18. | 4 Last Change: 2018-10-03 水 13:44:11. |
5 | 5 |
6 install to: rsearcher_root/ | 6 install to: rsearcher_root/ |
7 | 7 |
8 rsearcher_root/client.exe | 8 rsearcher_root/client.exe |
9 + grsearcher.exe | 9 + grsearcher.exe |
10 + app.conf | 10 + app.conf |
11 + verup.bat | 11 + verup.bat |
12 + auth.db ( temporary ) | 12 + auth.db ( temporary ) |
13 + hhs.db ( temporary ) | 13 + hhs.db ( temporary ) |
14 + index.db ( 10 days ) | 14 + index.db ( 10 days ) |
15 + image/*.png | 15 + image/*.png, *.jpg |
16 + doc/ | 16 + doc/ |
17 + .cache/*.jpg ( temporary ) | 17 + .cache/*.jpg ( temporary ) |
18 | 18 |
19 $ client.exe -r 192.168.0.1:3910 # get new release | 19 $ client.exe -r 192.168.0.1:3910 # get new release |
20 $ client.exe -u 192.168.0.1:3910 # get new dbs | 20 $ client.exe -u 192.168.0.1:3910 # get new dbs |
156 } | 156 } |
157 if err != nil { | 157 if err != nil { |
158 return err | 158 return err |
159 } | 159 } |
160 //f, _ := os.Create( hdr.Name ) | 160 //f, _ := os.Create( hdr.Name ) |
161 fn := fmt.Sprintf( "%s_%d.jpg", d, i ) | 161 fn := fmt.Sprintf( "%s_%d", d, i ) // 1.0a |
162 fn = fmt.Sprintf( "00000000_%d", i ) // for test | 162 //fn = fmt.Sprintf( "00000000_%d", i ) // for test |
163 | 163 |
164 fn = filepath.Join( ".cache", fn ) | 164 fn = filepath.Join( ".cache", fn ) |
165 f, _ := os.Create( fn ) | 165 f, _ := os.Create( fn ) |
166 if _, err := io.Copy( f, tr ); err != nil { | 166 if _, err := io.Copy( f, tr ); err != nil { |
167 return err | 167 return err |