client

package
v0.0.0-...-d043397 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEventById

func GetEventById(conf *config.Config, id string) (interface{}, error)

Types

type IrInterface

type IrInterface interface {
	GetEventById(conf *config.Config, id string) (interface{}, error)
}

type WhatsAppInterface

type WhatsAppInterface interface {
	Send(phoneNumber, text string) (string, error)
}

type WppConnection

type WppConnection struct {
	// contains filtered or unexported fields
}

func InitWhatsAppConnection

func InitWhatsAppConnection() (*WppConnection, error)

func (*WppConnection) Send

func (wpp *WppConnection) Send(phoneNumber, text string) (string, error)

type WppConnectionMock

type WppConnectionMock struct{}

func InitMock

func InitMock() *WppConnectionMock

func (*WppConnectionMock) Send

func (wpp *WppConnectionMock) Send(phoneNumber, text string) (string, error)

Jump to

Keyboard shortcuts

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