~samwhited/xmpp

e56ab03ddcfbe73939618d3bc6ca789df4a4ee21 — Sam Whited 3 years ago 35ec739
internal/ns: move ns package to internal/ns
11 files changed, 12 insertions(+), 12 deletions(-)

M bind.go
M bind_test.go
M errors.go
M features.go
R ns/ns.go => internal/ns/ns.go
M internal/saslerr/errors.go
M sasl.go
M sasl_test.go
M starttls.go
M starttls_test.go
M stream.go
M bind.go => bind.go +1 -1
@@ 11,8 11,8 @@ import (
	"io"

	"mellium.im/xmpp/internal"
	"mellium.im/xmpp/internal/ns"
	"mellium.im/xmpp/jid"
	"mellium.im/xmpp/ns"
	"mellium.im/xmpp/streamerror"
)


M bind_test.go => bind_test.go +1 -1
@@ 11,7 11,7 @@ import (
	"strings"
	"testing"

	"mellium.im/xmpp/ns"
	"mellium.im/xmpp/internal/ns"
)

func TestBindList(t *testing.T) {

M errors.go => errors.go +1 -1
@@ 9,8 9,8 @@ import (
	"strings"

	"golang.org/x/text/language"
	"mellium.im/xmpp/internal/ns"
	"mellium.im/xmpp/jid"
	"mellium.im/xmpp/ns"
)

type errorType int

M features.go => features.go +1 -1
@@ 9,7 9,7 @@ import (
	"encoding/xml"
	"io"

	"mellium.im/xmpp/ns"
	"mellium.im/xmpp/internal/ns"
	"mellium.im/xmpp/streamerror"
)


R ns/ns.go => internal/ns/ns.go +2 -2
@@ 4,9 4,9 @@

// Package ns provides namespace constants that are used by the xmpp package and
// other internal packages.
package ns // import "mellium.im/xmpp/ns"
package ns // import "mellium.im/xmpp/internal/ns"

// Namespaces used by the mellium.im/xmpp package.
// List of commonly used namespaces.
const (
	Bind     = "urn:ietf:params:xml:ns:xmpp-bind"
	Client   = "jabber:client"

M internal/saslerr/errors.go => internal/saslerr/errors.go +1 -1
@@ 10,7 10,7 @@ import (
	"encoding/xml"

	"golang.org/x/text/language"
	"mellium.im/xmpp/ns"
	"mellium.im/xmpp/internal/ns"
)

// condition represents a SASL error condition that can be encapsulated by a

M sasl.go => sasl.go +1 -1
@@ 13,8 13,8 @@ import (
	"io"

	"mellium.im/sasl"
	"mellium.im/xmpp/internal/ns"
	"mellium.im/xmpp/internal/saslerr"
	"mellium.im/xmpp/ns"
	"mellium.im/xmpp/streamerror"
)


M sasl_test.go => sasl_test.go +1 -1
@@ 12,7 12,7 @@ import (
	"testing"

	"mellium.im/sasl"
	"mellium.im/xmpp/ns"
	"mellium.im/xmpp/internal/ns"
)

func TestSASLPanicsNoMechanisms(t *testing.T) {

M starttls.go => starttls.go +1 -1
@@ 13,7 13,7 @@ import (
	"io"
	"net"

	"mellium.im/xmpp/ns"
	"mellium.im/xmpp/internal/ns"
	"mellium.im/xmpp/streamerror"
)


M starttls_test.go => starttls_test.go +1 -1
@@ 15,7 15,7 @@ import (
	"testing"
	"time"

	"mellium.im/xmpp/ns"
	"mellium.im/xmpp/internal/ns"
)

// There is no room for variation on the starttls feature negotiation, so step

M stream.go => stream.go +1 -1
@@ 12,8 12,8 @@ import (

	"golang.org/x/text/language"
	"mellium.im/xmpp/internal"
	"mellium.im/xmpp/internal/ns"
	"mellium.im/xmpp/jid"
	"mellium.im/xmpp/ns"
	"mellium.im/xmpp/streamerror"
)