Skip to content

Commit

Permalink
modify namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
jefftao-dev committed Jul 7, 2024
1 parent 3f32dcb commit ff6d3ab
Show file tree
Hide file tree
Showing 12 changed files with 33 additions and 31 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ The current implementation contains code for IEC 60870-5-104 (protocool over TCP



[![Go.Dev reference](https://img.shields.io/badge/go.dev-reference-blue?logo=go&logoColor=white)](https://pkg.go.dev/github.com/thinkgos/go-iecp5?tab=doc)
[![Tests](https://github.com/thinkgos/go-iecp5/actions/workflows/ci.yml/badge.svg)](https://github.com/thinkgos/go-iecp5/actions/workflows/ci.yml)
[![Go.Dev reference](https://img.shields.io/badge/go.dev-reference-blue?logo=go&logoColor=white)](https://pkg.go.dev/github.com/wendy512/go-iecp5?tab=doc)
[![Tests](https://github.com/wendy512/go-iecp5/actions/workflows/ci.yml/badge.svg)](https://github.com/wendy512/go-iecp5/actions/workflows/ci.yml)
[![codecov](https://codecov.io/gh/thinkgos/go-iecp5/branch/master/graph/badge.svg)](https://codecov.io/gh/thinkgos/go-iecp5)
[![Go Report Card](https://goreportcard.com/badge/github.com/thinkgos/go-iecp5)](https://goreportcard.com/report/github.com/thinkgos/go-iecp5)
[![License](https://img.shields.io/github/license/thinkgos/go-iecp5)](https://github.com/thinkgos/go-iecp5/raw/master/LICENSE)
[![Tag](https://img.shields.io/github/v/tag/thinkgos/go-iecp5)](https://github.com/thinkgos/go-iecp5/tags)
[![Sourcegraph](https://sourcegraph.com/github.com/thinkgos/go-iecp5/-/badge.svg)](https://sourcegraph.com/github.com/thinkgos/go-iecp5?badge)
[![Go Report Card](https://goreportcard.com/badge/github.com/wendy512/go-iecp5)](https://goreportcard.com/report/github.com/wendy512/go-iecp5)
[![License](https://img.shields.io/github/license/thinkgos/go-iecp5)](https://github.com/wendy512/go-iecp5/raw/master/LICENSE)
[![Tag](https://img.shields.io/github/v/tag/thinkgos/go-iecp5)](https://github.com/wendy512/go-iecp5/tags)
[![Sourcegraph](https://sourcegraph.com/github.com/wendy512/go-iecp5/-/badge.svg)](https://sourcegraph.com/github.com/wendy512/go-iecp5?badge)


asdu package: [![GoDoc](https://godoc.org/github.com/thinkgos/go-iecp5/asdu?status.svg)](https://godoc.org/github.com/thinkgos/go-iecp5/asdu)
clog package: [![GoDoc](https://godoc.org/github.com/thinkgos/go-iecp5/clog?status.svg)](https://godoc.org/github.com/thinkgos/go-iecp5/clog)
cs104 package: [![GoDoc](https://godoc.org/github.com/thinkgos/go-iecp5/cs104?status.svg)](https://godoc.org/github.com/thinkgos/go-iecp5/cs104)
asdu package: [![GoDoc](https://godoc.org/github.com/wendy512/go-iecp5/asdu?status.svg)](https://godoc.org/github.com/wendy512/go-iecp5/asdu)
clog package: [![GoDoc](https://godoc.org/github.com/wendy512/go-iecp5/clog?status.svg)](https://godoc.org/github.com/wendy512/go-iecp5/clog)
cs104 package: [![GoDoc](https://godoc.org/github.com/wendy512/go-iecp5/cs104?status.svg)](https://godoc.org/github.com/wendy512/go-iecp5/cs104)

## Feature:

Expand Down
4 changes: 2 additions & 2 deletions _examples/cs104_client_general/cliGeneral.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"time"

"github.com/thinkgos/go-iecp5/asdu"
"github.com/thinkgos/go-iecp5/cs104"
"github.com/wendy512/go-iecp5/asdu"
"github.com/wendy512/go-iecp5/cs104"
)

type myClient struct{}
Expand Down
4 changes: 2 additions & 2 deletions _examples/cs104_server_general/srvGeneral.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"log"
"time"

"github.com/thinkgos/go-iecp5/asdu"
"github.com/thinkgos/go-iecp5/cs104"
"github.com/wendy512/go-iecp5/asdu"
"github.com/wendy512/go-iecp5/cs104"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions _examples/cs104_server_special/srvSepcial.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

_ "net/http/pprof"

"github.com/thinkgos/go-iecp5/asdu"
"github.com/thinkgos/go-iecp5/cs104"
"github.com/wendy512/go-iecp5/asdu"
"github.com/wendy512/go-iecp5/cs104"
)

func main() {
Expand Down
12 changes: 7 additions & 5 deletions cs104/apci.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,17 @@ package cs104
import (
"fmt"

"github.com/thinkgos/go-iecp5/asdu"
"github.com/wendy512/go-iecp5/asdu"
)

const startFrame byte = 0x68 // 启动字符

// APDU form Max size 255
// | APCI | ASDU |
// | start | APDU length | control field | ASDU |
// | APDU field size(253) |
//
// | APCI | ASDU |
// | start | APDU length | control field | ASDU |
// | APDU field size(253) |
//
// bytes| 1 | 1 | 4 | |
const (
APCICtlFiledSize = 4 // control filed(4)
Expand Down Expand Up @@ -52,7 +54,7 @@ func (sf sAPCI) String() string {
return fmt.Sprintf("S[recvNO: %d]", sf.rcvSN)
}

//U帧 只含apci 未编号控制信息 unnumbered
// U帧 只含apci 未编号控制信息 unnumbered
type uAPCI struct {
function byte // bit8 测试确认
}
Expand Down
4 changes: 2 additions & 2 deletions cs104/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import (
"sync/atomic"
"time"

"github.com/thinkgos/go-iecp5/asdu"
"github.com/thinkgos/go-iecp5/clog"
"github.com/wendy512/go-iecp5/asdu"
"github.com/wendy512/go-iecp5/clog"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion cs104/clientOption.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"strings"
"time"

"github.com/thinkgos/go-iecp5/asdu"
"github.com/wendy512/go-iecp5/asdu"
)

// ClientOption 客户端配置
Expand Down
2 changes: 1 addition & 1 deletion cs104/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ package cs104
import (
"time"

"github.com/thinkgos/go-iecp5/asdu"
"github.com/wendy512/go-iecp5/asdu"
)

// ServerHandlerInterface is the interface of server handler
Expand Down
4 changes: 2 additions & 2 deletions cs104/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"sync"
"time"

"github.com/thinkgos/go-iecp5/asdu"
"github.com/thinkgos/go-iecp5/clog"
"github.com/wendy512/go-iecp5/asdu"
"github.com/wendy512/go-iecp5/clog"
)

// timeoutResolution is seconds according to companion standard 104,
Expand Down
4 changes: 2 additions & 2 deletions cs104/server_session.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (
"sync/atomic"
"time"

"github.com/thinkgos/go-iecp5/asdu"
"github.com/thinkgos/go-iecp5/clog"
"github.com/wendy512/go-iecp5/asdu"
"github.com/wendy512/go-iecp5/clog"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions cs104/server_special.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"sync/atomic"
"time"

"github.com/thinkgos/go-iecp5/asdu"
"github.com/thinkgos/go-iecp5/clog"
"github.com/wendy512/go-iecp5/asdu"
"github.com/wendy512/go-iecp5/clog"
)

// ServerSpecial server special interface
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/thinkgos/go-iecp5
module github.com/wendy512/go-iecp5

go 1.15

0 comments on commit ff6d3ab

Please sign in to comment.