data

package
v0.0.0-...-4b49be3 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2021 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CurrWASession whatsapp.Session

CurrWASession is an entity that holds application current whatsapp session

WAconfig is an application current whatsapp configuration from config.whatsapp.yaml file

Functions

func ConfigInit

func ConfigInit(config *entities.Configuration) error

ConfigInit is a function to initialize app configuration

func GenerateQR

func GenerateQR(logger hclog.Logger, qrChan chan string, wac *whatsapp.Conn) ([]byte, error)

GenerateQR is a function to generate whatsapp session QR

func UnmarshalJSON

func UnmarshalJSON(jsonString string, exResult *ExistanceResult) error

UnmarshalJSON unmarshal the object from JSON formated string

Types

type ExistanceResult

type ExistanceResult struct {
	Status int
	Jid    string
}

ExistanceResult is a struct to store the result of existance method

type Whatsapp

type Whatsapp struct {
	Wac *whatsapp.Conn
	// contains filtered or unexported fields
}

Whatsapp is a struct for whatsapp variable

func NewWA

func NewWA(logger hclog.Logger) (*Whatsapp, error)

NewWA creates a new Whatsapp handler

Jump to

Keyboard shortcuts

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