Documentation ¶
Index ¶
- Constants
- func Auth(username string, password string, uri string) (bool, error)
- func CwmpHandler(w http.ResponseWriter, r *http.Request)
- func DigestAuthParams(r *http.Response) map[string]string
- func H(data string) string
- func RandomKey() string
- func Run(port *int, logObj MosesWriter, xmppUser, xmppPass string)
- type BasicWriter
- type CPE
- type Client
- type Message
- type MosesWriter
- type MsgCPEs
- type Request
- type WsMessage
- type WsSendMessage
Constants ¶
View Source
const Version = "0.2.6"
Variables ¶
This section is empty.
Functions ¶
func CwmpHandler ¶
func CwmpHandler(w http.ResponseWriter, r *http.Request)
func DigestAuthParams ¶
Parse Authorization header from the http.Request. Returns a map of auth parameters or nil if the header is not a valid parsable Digest auth header.
func Run ¶
func Run(port *int, logObj MosesWriter, xmppUser, xmppPass string)
Types ¶
type BasicWriter ¶
type BasicWriter struct { }
func (*BasicWriter) Logger ¶
func (w *BasicWriter) Logger(log string)
type CPE ¶
type CPE struct { SerialNumber string Manufacturer string OUI string ConnectionRequestURL string XmppId string XmppUsername string XmppPassword string SoftwareVersion string ExternalIPAddress string State string Queue *lane.Queue Waiting *Request HardwareVersion string LastConnection time.Time DataModel string KeepConnectionOpen bool }
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) SendNew ¶
func (client *Client) SendNew(msg *WsSendMessage)
type MosesWriter ¶
type MosesWriter interface {
Logger(string)
}
type WsSendMessage ¶
type WsSendMessage struct { MsgType string Data json.RawMessage }
Click to show internal directories.
Click to hide internal directories.