scn

package
v0.0.383 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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 (*MessageBuilder) SenderName

func (c *MessageBuilder) SenderName(sn string) *MessageBuilder

func (*MessageBuilder) Time

func (c *MessageBuilder) Time(t time.Time) *MessageBuilder

type MessageErrResponse

type MessageErrResponse struct {
	Errhighlight int    `json:"errhighlight"`
	Error        int    `json:"error"`
	Message      string `json:"message"`
	Success      bool   `json:"success"`
}

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL