File tree 6 files changed +20
-13
lines changed
6 files changed +20
-13
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,8 @@ func (msg Msg) Clone() Msg {
93
93
}
94
94
95
95
// Cmd is a ZMTP Cmd as per:
96
- // https://rfc.zeromq.org/spec:23/ZMTP/#formal-grammar
96
+ //
97
+ // https://rfc.zeromq.org/spec:23/ZMTP/#formal-grammar
97
98
type Cmd struct {
98
99
Name string
99
100
Body []byte
@@ -126,7 +127,8 @@ func (cmd *Cmd) marshalZMTP() ([]byte, error) {
126
127
}
127
128
128
129
// ZMTP commands as per:
129
- // https://rfc.zeromq.org/spec:23/ZMTP/#commands
130
+ //
131
+ // https://rfc.zeromq.org/spec:23/ZMTP/#commands
130
132
const (
131
133
CmdCancel = "CANCEL"
132
134
CmdError = "ERROR"
Original file line number Diff line number Diff line change @@ -217,7 +217,8 @@ func (md *Metadata) UnmarshalZMTP(p []byte) error {
217
217
218
218
// Property describes a Conn metadata's entry.
219
219
// The on-wire respresentation of Property is specified by:
220
- // https://rfc.zeromq.org/spec:23/ZMTP/
220
+ //
221
+ // https://rfc.zeromq.org/spec:23/ZMTP/
221
222
type Property struct {
222
223
K string
223
224
V string
Original file line number Diff line number Diff line change @@ -58,9 +58,10 @@ func (nullSecurity) Type() SecurityType {
58
58
// Handshake implements the ZMTP security handshake according to
59
59
// this security mechanism.
60
60
// see:
61
- // https://rfc.zeromq.org/spec:23/ZMTP/
62
- // https://rfc.zeromq.org/spec:24/ZMTP-PLAIN/
63
- // https://rfc.zeromq.org/spec:25/ZMTP-CURVE/
61
+ //
62
+ // https://rfc.zeromq.org/spec:23/ZMTP/
63
+ // https://rfc.zeromq.org/spec:24/ZMTP-PLAIN/
64
+ // https://rfc.zeromq.org/spec:25/ZMTP-CURVE/
64
65
func (nullSecurity ) Handshake (conn * Conn , server bool ) error {
65
66
raw , err := conn .Meta .MarshalZMTP ()
66
67
if err != nil {
Original file line number Diff line number Diff line change @@ -28,9 +28,10 @@ func (security) Type() zmq4.SecurityType {
28
28
// Handshake implements the ZMTP security handshake according to
29
29
// this security mechanism.
30
30
// see:
31
- // https://rfc.zeromq.org/spec:23/ZMTP/
32
- // https://rfc.zeromq.org/spec:24/ZMTP-PLAIN/
33
- // https://rfc.zeromq.org/spec:25/ZMTP-CURVE/
31
+ //
32
+ // https://rfc.zeromq.org/spec:23/ZMTP/
33
+ // https://rfc.zeromq.org/spec:24/ZMTP-PLAIN/
34
+ // https://rfc.zeromq.org/spec:25/ZMTP-CURVE/
34
35
func (security ) Handshake (conn * zmq4.Conn , server bool ) error {
35
36
raw , err := conn .Meta .MarshalZMTP ()
36
37
if err != nil {
Original file line number Diff line number Diff line change @@ -32,9 +32,10 @@ func (security) Type() zmq4.SecurityType {
32
32
// Handshake implements the ZMTP security handshake according to
33
33
// this security mechanism.
34
34
// see:
35
- // https://rfc.zeromq.org/spec:23/ZMTP/
36
- // https://rfc.zeromq.org/spec:24/ZMTP-PLAIN/
37
- // https://rfc.zeromq.org/spec:25/ZMTP-CURVE/
35
+ //
36
+ // https://rfc.zeromq.org/spec:23/ZMTP/
37
+ // https://rfc.zeromq.org/spec:24/ZMTP-PLAIN/
38
+ // https://rfc.zeromq.org/spec:25/ZMTP-CURVE/
38
39
func (sec * security ) Handshake (conn * zmq4.Conn , server bool ) error {
39
40
switch {
40
41
case server :
Original file line number Diff line number Diff line change @@ -89,7 +89,8 @@ func (sck SocketType) IsCompatible(peer SocketType) bool {
89
89
90
90
// SocketIdentity is the ZMTP metadata socket identity.
91
91
// See:
92
- // https://rfc.zeromq.org/spec:23/ZMTP/.
92
+ //
93
+ // https://rfc.zeromq.org/spec:23/ZMTP/.
93
94
type SocketIdentity []byte
94
95
95
96
func (id SocketIdentity ) String () string {
You can’t perform that action at this time.
0 commit comments