whatsauth

package module
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2023 License: MIT Imports: 6 Imported by: 91

README

whatsauth

golang package for whatsapp authentication

Usage

Initialize your module
go mod init example.com/my-whatsauth-demo
Get the gogis module

Note that you need to include the v in the version tag.

go get github.com/whatsauth/whatsauth
package main

import (
    "fmt"

    "github.com/whatsauth/whatsauth"
)

func main() {
    
}

To Contribute this Repo

go test

Tagging

develop and publish new version of gogis

git tag v0.1.2
git push origin --tags
go list -m github.com/whatsauth/whatsauth@v0.0.1

Environment

Setting up environment

GOPROXY=proxy.golang.org

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Hub = hub{
	// contains filtered or unexported fields
}

Functions

func HubRun

func HubRun(Hub *hub)

func SendMessageTo

func SendMessageTo(ID string, msg string) (res bool)

func SendStructTo added in v0.0.5

func SendStructTo(ID string, strc interface{}) (res bool)

func ServeWs

func ServeWs(w http.ResponseWriter, r *http.Request)

serveWs handles websocket requests from the peer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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