Documentation ¶
Index ¶
- func ConnectClient(client *whatsmeow.Client) error
- func CreateContainerDB(pgstring string) (container *sqlstore.Container, err error)
- func DefaultID(client *WaClient) string
- func FindByPhoneNum(phonenumber string, clients GetStoreClient, mongoconn *mongo.Database) (idMap string, err error)
- func GetDeviceIDFromContainer(phonenumber string, container *sqlstore.Container) (deviceid uint16, err error)
- func GetDeviceStoreFromContainer(phonenumber string, container *sqlstore.Container) (device *store.Device, err error)
- func HandlingMessage(Info *types.MessageInfo, Message *waProto.Message, client *WaClient)
- func PairConnect(client *WaClient, qr chan QRStatus)
- func PairConnectStore(client *WaClient, storeMap GetStoreClient, qr chan QRStatus)
- func PairConnectStoreMap(client *WaClient, storeMap GetStoreClient, qr chan QRStatus)
- func QRConnect(client *WaClient, qr chan QRStatus)
- func ResetDeviceStore(mongoconn *mongo.Database, client *WaClient, container *sqlstore.Container) (err error)
- func SendTextMessage(txt TextMessage, whatsapp *whatsmeow.Client) (resp whatsmeow.SendResponse, err error)
- func WithPhoneNumber(phonenumber string, clients []*WaClient, mongoconn *mongo.Database) (idx int, err error)
- type Clients
- type GetClient
- type GetStoreClient
- type MapClient
- func (m *MapClient) CheckClientOnline(id string) (ok bool)
- func (m *MapClient) GetAllClient() (listCli []*WaClient)
- func (m *MapClient) GetClient(id string) (client *WaClient, ok bool)
- func (m *MapClient) OfflineClient() (res []string)
- func (m *MapClient) SetOnlineClient(id string) (ok bool)
- func (m *MapClient) StatusAllClient() (res map[string]bool)
- func (m *MapClient) StoreAllClient(listClient []*WaClient) (ok bool)
- func (m *MapClient) StoreAllClientCustomId(listClient []*WaClient, f func(*WaClient) string) (ok bool)
- func (m *MapClient) StoreClient(id string, client *WaClient)
- func (m *MapClient) StoreOnlineClient(id string, client *WaClient) (ok bool)
- type QRStatus
- type StoreClient
- type TextMessage
- type User
- type WaClient
- func ConnectAllClient(mongoconn *mongo.Database, container *sqlstore.Container) (clients []*WaClient, err error)
- func CreateClientfromContainer(phonenumber string, mongoconn *mongo.Database, container *sqlstore.Container) (client *WaClient, err error)
- func GetWaClient(phonenumber string, client []*WaClient, mongoconn *mongo.Database, ...) (waclient *WaClient, err error)
- func GetWaClientMap(phonenumber string, client GetStoreClient, mongoconn *mongo.Database, ...) (waclient *WaClient, err error)
- func SetWaClient(phonenumber string, client *Clients, mongoconn *mongo.Database, ...) (waclient *WaClient, err error)
- type WebHook
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectClient ¶ added in v0.2.1
func CreateContainerDB ¶ added in v0.0.3
func FindByPhoneNum ¶ added in v0.3.7
func GetDeviceIDFromContainer ¶ added in v0.0.8
func GetDeviceStoreFromContainer ¶ added in v0.2.1
func HandlingMessage ¶
func HandlingMessage(Info *types.MessageInfo, Message *waProto.Message, client *WaClient)
func PairConnect ¶
func PairConnectStore ¶ added in v0.3.4
func PairConnectStore(client *WaClient, storeMap GetStoreClient, qr chan QRStatus)
func PairConnectStoreMap ¶ added in v0.4.0
func PairConnectStoreMap(client *WaClient, storeMap GetStoreClient, qr chan QRStatus)
func ResetDeviceStore ¶ added in v0.0.4
func SendTextMessage ¶
func SendTextMessage(txt TextMessage, whatsapp *whatsmeow.Client) (resp whatsmeow.SendResponse, err error)
Types ¶
type GetStoreClient ¶ added in v0.3.5
type GetStoreClient interface { StoreClient GetClient }
type MapClient ¶ added in v0.3.0
func NewMapClient ¶ added in v0.3.3
func (*MapClient) CheckClientOnline ¶ added in v0.3.0
func (*MapClient) GetAllClient ¶ added in v0.3.0
func (*MapClient) OfflineClient ¶ added in v0.3.1
func (*MapClient) SetOnlineClient ¶ added in v0.3.0
func (*MapClient) StatusAllClient ¶ added in v0.3.1
func (*MapClient) StoreAllClient ¶ added in v0.3.0
func (*MapClient) StoreAllClientCustomId ¶ added in v0.3.5
func (*MapClient) StoreClient ¶ added in v0.3.0
type QRStatus ¶
type QRStatus struct { PhoneNumber string `json:"phonenumber"` Status bool `json:"status"` Code string `json:"code"` Message string `json:"message"` }
func RePairConnect ¶ added in v0.4.0
type StoreClient ¶ added in v0.3.4
type TextMessage ¶
type WaClient ¶
type WaClient struct { PhoneNumber string WAClient *whatsmeow.Client Mongoconn *mongo.Database // contains filtered or unexported fields }
func ConnectAllClient ¶
func CreateClientfromContainer ¶ added in v0.0.8
func GetWaClient ¶
func GetWaClientMap ¶ added in v0.3.7
func SetWaClient ¶ added in v0.2.7
func (*WaClient) EventHandler ¶
func (mycli *WaClient) EventHandler(evt interface{})
Click to show internal directories.
Click to hide internal directories.