Documentation
¶
Index ¶
- Constants
- Variables
- func IsGroupJid(jid string) bool
- func IsOnWhatsapp(waCli *whatsmeow.Client, jid string) bool
- func ParseJID(arg string) (types.JID, error)
- type Client
- func (c *Client) Backup()
- func (c *Client) Get(clientDeviceID string) *whatsmeow.Client
- func (c *Client) GetQR(clientDeviceID string) string
- func (c *Client) NewMeow(clientDeviceID string) *whatsmeow.Client
- func (c *Client) Reset(clientDeviceID string) error
- func (c *Client) ResetQR(clientDeviceID string) error
- func (c *Client) Restore()
- func (c *Client) Set(clientDeviceID string, cli *whatsmeow.Client) error
- func (c *Client) SetQR(clientDeviceID string, qr string) error
- func (c *Client) Upgrade() error
- type Device
- type DeviceRepo
- type EventHandler
- type Migration
- type Option
Constants ¶
View Source
const ( LogLevel = "INFO" LogLevelDB = "INFO" LogLevelDevice = "INFO" )
Variables ¶
View Source
var ( ErrClientAlreadyExist = errors.New("whatsapp client with specific id already exist") ErrClientNotExist = errors.New("whatsapp client is not exits") ErrQRAlreadyExist = errors.New("qrcode with specific id already exist") ErrQRNotExist = errors.New("qrcode is not exits") )
View Source
var ( ErrServerUnexpected = errors.New("server error occurred") ErrAlreadyConnected = errors.New("device already connected") ErrNotLogin = errors.New("device not login yet") ErrRecipientNotFound = errors.New("recipient number not found") )
View Source
var Upgrades = [1]upgradeFunc{version1}
Functions ¶
func IsGroupJid ¶
Types ¶
type Client ¶
type DeviceRepo ¶
type DeviceRepo struct {
// contains filtered or unexported fields
}
func (*DeviceRepo) GetDeviceByJID ¶
func (r *DeviceRepo) GetDeviceByJID(jid string) (*Device, error)
func (*DeviceRepo) Reset ¶
func (r *DeviceRepo) Reset(clientDeviceID string) error
type EventHandler ¶
type EventHandler func(cli *whatsmeow.Client, clientDeviceID string) whatsmeow.EventHandler
Click to show internal directories.
Click to hide internal directories.