Documentation ¶
Index ¶
- Variables
- type Connection
- type MessageBuilder
- func (c *MessageBuilder) Channel(channel string) *MessageBuilder
- func (c *MessageBuilder) Content(content string) *MessageBuilder
- func (c *MessageBuilder) Priority(p int) *MessageBuilder
- func (c *MessageBuilder) Send(ctx context.Context) (MessageResponse, error)
- func (c *MessageBuilder) SenderName(sn string) *MessageBuilder
- func (c *MessageBuilder) Time(t time.Time) *MessageBuilder
- type MessageErrResponse
- type MessageResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrAuthFailed = exerr.NewType("GOEXT_SCN_AUTHFAILED", nil) ErrQuota = exerr.NewType("GOEXT_SCN_QUOTAEXCEEDED", nil) ErrBadRequest = exerr.NewType("GOEXT_SCN_BADREQUEST", nil) ErrInternalServerErr = exerr.NewType("GOEXT_SCN_INTERNALSERVER", nil) ErrOther = exerr.NewType("GOEXT_SCN_OTHER", nil) )
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func New ¶
func New(userid string, token string) *Connection
func (*Connection) Message ¶
func (c *Connection) Message(title string) *MessageBuilder
type MessageBuilder ¶
type MessageBuilder struct {
// contains filtered or unexported fields
}
func (*MessageBuilder) Channel ¶
func (c *MessageBuilder) Channel(channel string) *MessageBuilder
func (*MessageBuilder) Content ¶
func (c *MessageBuilder) Content(content string) *MessageBuilder
func (*MessageBuilder) Priority ¶
func (c *MessageBuilder) Priority(p int) *MessageBuilder
func (*MessageBuilder) Send ¶
func (c *MessageBuilder) Send(ctx context.Context) (MessageResponse, error)
func (*MessageBuilder) SenderName ¶
func (c *MessageBuilder) SenderName(sn string) *MessageBuilder
func (*MessageBuilder) Time ¶
func (c *MessageBuilder) Time(t time.Time) *MessageBuilder
type MessageErrResponse ¶
type MessageResponse ¶
type MessageResponse struct { ErrHighlight int `json:"errhighlight"` Error int `json:"error"` IsPro bool `json:"is_pro"` Message string `json:"message"` Messagecount int `json:"messagecount"` Quota int `json:"quota"` QuotaMax int `json:"quota_max"` SCNMessageID string `json:"scn_msg_id"` Success bool `json:"success"` SuppressSend bool `json:"suppress_send"` }
Click to show internal directories.
Click to hide internal directories.