From fe67025b94b573a5775ee8ebfcb8b9778519f649 Mon Sep 17 00:00:00 2001 From: Matt Goodall Date: Wed, 27 Jun 2012 12:10:22 +0100 Subject: [PATCH] Don't expose client struct. --- src/xmpp/client.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/xmpp/client.go b/src/xmpp/client.go index 0b970f4..828e007 100644 --- a/src/xmpp/client.go +++ b/src/xmpp/client.go @@ -8,7 +8,7 @@ import ( "log" ) -type Client struct { +type client struct { JID JID stream *Stream } @@ -18,7 +18,7 @@ type ClientConfig struct { InsecureSkipVerify bool } -func NewClient(jid JID, password string, config *ClientConfig) (*Client, error) { +func NewClient(jid JID, password string, config *ClientConfig) (*client, error) { stream, err := NewStream(jid.Domain + ":5222") if err != nil { @@ -71,7 +71,7 @@ func NewClient(jid JID, password string, config *ClientConfig) (*Client, error) break } - return &Client{jid, stream}, nil + return &client{jid, stream}, nil } func authenticate(stream *Stream, mechanisms []string, user, password string) error {