Skip to content

Commit 6e6604b

Browse files
committed
renames
1 parent 9e37a6a commit 6e6604b

12 files changed

Lines changed: 30 additions & 31 deletions

client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package update_api_1c
1+
package updateApiClient
22

33
import (
44
"encoding/json"
@@ -12,7 +12,7 @@ import (
1212
"github.com/khorevaa/logos"
1313
)
1414

15-
var log = logos.New("github.com/v8platform/update-api-1c")
15+
var log = logos.New("github.com/v8platform/updateApiClient")
1616

1717
const (
1818
baseURL = "https://update-api.1c.ru"

client_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package update_api_1c
1+
package updateApiClient
22

33
import (
44
"reflect"
@@ -37,7 +37,7 @@ func TestClient_GetUpdateInfo(t *testing.T) {
3737
},
3838
},
3939
UpdateInfoResponse{
40-
nil,
40+
ErrorResponse{},
4141
ConfigurationUpdateInfo{
4242
ConfigurationVersion: "3.0.89.43",
4343
Size: 122421513,
@@ -71,7 +71,7 @@ func TestClient_GetUpdateInfo(t *testing.T) {
7171
args{
7272
"Accounting",
7373
"3.0.88.22",
74-
[]string{NewProgramOrRedactionUpdateType,""},
74+
[]string{NewProgramOrRedactionUpdateType, ""},
7575
},
7676
UpdateInfoResponse{},
7777
true,

error.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package update_api_1c
1+
package updateApiClient
22

33
type RequestError struct {
44
Timestamp int64 `json:"timestamp"`

example_test.go

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
package update_api_1c_test
1+
package updateApiClient_test
22

33
import (
44
"github.com/k0kubun/pp"
5-
update_api_1c "github.com/v8platform/update-api-1c"
5+
apiClient "github.com/v8platform/updateApiClient"
66

77
"io"
88
"io/ioutil"
@@ -14,11 +14,11 @@ import (
1414

1515
func ExampleNewClient() {
1616

17-
client := update_api_1c.NewClient("ITS_USER", "ITS_PASSWORD")
17+
client := apiClient.NewClient("ITS_USER", "ITS_PASSWORD")
1818

1919
updateInfo, err := client.GetUpdateInfo("Accounting",
2020
"3.0.88.22",
21-
update_api_1c.NewProgramOrRedactionUpdateType, "8.3.15.2107")
21+
apiClient.NewProgramOrRedactionUpdateType, "8.3.15.2107")
2222

2323
if err != nil {
2424
log.Fatal(err)
@@ -30,11 +30,11 @@ func ExampleNewClient() {
3030

3131
func ExampleClient_GetUpdateInfo() {
3232

33-
client := update_api_1c.NewClient("", "")
33+
client := apiClient.NewClient("", "")
3434

3535
updateInfo, err := client.GetUpdateInfo("Accounting",
3636
"3.0.88.22",
37-
update_api_1c.NewProgramOrRedactionUpdateType, "8.3.15.2107")
37+
apiClient.NewProgramOrRedactionUpdateType, "8.3.15.2107")
3838

3939
if err != nil {
4040
log.Fatal(err)
@@ -46,11 +46,11 @@ func ExampleClient_GetUpdateInfo() {
4646

4747
func ExampleClient_GetUpdate() {
4848

49-
client := update_api_1c.NewClient("ITS_USER", "ITS_PASSWORD")
49+
client := apiClient.NewClient("ITS_USER", "ITS_PASSWORD")
5050

5151
updateInfo, err := client.GetUpdateInfo("Accounting",
5252
"3.0.88.22",
53-
update_api_1c.NewProgramOrRedactionUpdateType, "8.3.15.2107")
53+
apiClient.NewProgramOrRedactionUpdateType, "8.3.15.2107")
5454

5555
if err != nil {
5656
log.Fatal(err)
@@ -69,11 +69,11 @@ func ExampleClient_GetUpdate() {
6969
}
7070

7171
func ExampleClient_GetConfigurationUpdateData() {
72-
client := update_api_1c.NewClient("ITS_USER", "ITS_PASSWORD")
72+
client := apiClient.NewClient("ITS_USER", "ITS_PASSWORD")
7373

7474
updateInfo, err := client.GetUpdateInfo("Accounting",
7575
"3.0.88.22",
76-
update_api_1c.NewProgramOrRedactionUpdateType, "8.3.15.2107")
76+
apiClient.NewProgramOrRedactionUpdateType, "8.3.15.2107")
7777

7878
if err != nil {
7979
log.Fatal(err)
@@ -113,7 +113,7 @@ func ExampleClient_GetConfigurationUpdateData() {
113113
f.Close()
114114
updateDataFile.Close()
115115

116-
err = update_api_1c.UnzipFile(f.Name(), distPath)
116+
err = apiClient.UnzipFile(f.Name(), distPath)
117117
if err != nil {
118118
log.Fatal(err)
119119
}
@@ -124,7 +124,7 @@ func ExampleClient_GetConfigurationUpdateData() {
124124

125125
func ExampleClient_GetPatchesInfo() {
126126

127-
client := update_api_1c.NewClient("ITS_USER", "ITS_PASSWORD")
127+
client := apiClient.NewClient("ITS_USER", "ITS_PASSWORD")
128128

129129
patchesInfo, err := client.GetPatchesInfo("Accounting",
130130
"3.0.88.22")
@@ -139,7 +139,7 @@ func ExampleClient_GetPatchesInfo() {
139139

140140
func ExampleClient_GetPatchesFilesInfo() {
141141

142-
client := update_api_1c.NewClient("ITS_USER", "ITS_PASSWORD")
142+
client := apiClient.NewClient("ITS_USER", "ITS_PASSWORD")
143143

144144
patchesInfo, err := client.GetPatchesInfo("Accounting",
145145
"3.0.88.22")
@@ -167,7 +167,7 @@ func ExampleClient_GetPatchesFilesInfo() {
167167

168168
func ExampleClient_GetPatchDistributionData() {
169169

170-
client := update_api_1c.NewClient("ITS_USER", "ITS_PASSWORD")
170+
client := apiClient.NewClient("ITS_USER", "ITS_PASSWORD")
171171

172172
patchesInfo, err := client.GetPatchesInfo("Accounting",
173173
"3.0.88.22")
@@ -218,7 +218,7 @@ func ExampleClient_GetPatchDistributionData() {
218218

219219
f.Close()
220220

221-
err = update_api_1c.UnzipFile(f.Name(), distPath)
221+
err = apiClient.UnzipFile(f.Name(), distPath)
222222
if err != nil {
223223
log.Fatal(err)
224224
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/v8platform/update-api-1c
1+
module github.com/v8platform/updateApiClient
22

33
go 1.15
44

patches.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package update_api_1c
1+
package updateApiClient
22

33
import "github.com/monaco-io/request"
44

patchesGetFiles.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package update_api_1c
1+
package updateApiClient
22

33
import (
44
"bytes"

programNames.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
package update_api_1c
1+
package updateApiClient
22

33
const (
44
Accounting = "Accounting"
5-
ZUP = "HRM"
5+
ZUP = "HRM"
66
)
7-

types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package update_api_1c
1+
package updateApiClient
22

33
import "fmt"
44

update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package update_api_1c
1+
package updateApiClient
22

33
import (
44
"github.com/monaco-io/request"

0 commit comments

Comments
 (0)