Versions in this module Expand all Collapse all v0 v0.0.1 Nov 3, 2018 Changes in this version + func DefaultHandler(sender, receiver, messageID, message, accessCode string) + type Client struct + func New(opt *Options) *Client + func (c *Client) Close() + func (c *Client) Connect() error + func (c *Client) DeliveryHandler(handler Handler) + func (c *Client) GetBillingID() string + func (c *Client) GetTps() int + func (c *Client) Printf(format string, v ...interface{}) + func (c *Client) Send(sender, receiver, message string) ([]string, error) + func (c *Client) SetBillingID(id string) + func (c *Client) SetTps(tps int) + func (c *Client) ShortMessageHandler(handler Handler) + type Handler func(sender, receiver, messageID, message, accessCode string) + type Logger interface + Printf func(format string, v ...interface{}) + type Options struct + AccessCode string + Addr string + DeliveryHandler Handler + KeepAlive time.Duration + Logger Logger + Password string + ShortMessageHandler Handler + Timeout time.Duration + Tps int + User string + type UcpError struct + Code string + Msg string + func (e *UcpError) Error() string