raketa

module
v0.0.13-0...-3a6ea4c Latest Latest
Warning

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

Go to latest
Published: May 23, 2020 License: BSD-2-Clause

README

raketa

Build Status Coverage Status
Rocket.Chat client for messages and notifications, inspired by https://github.com/detached/gorocket/

Base example:

func main() {
	httpClient := &http.Client{}
	// Create rest client
	// check err in real project
	restClient, _ := rest.NewClient(
		"127.0.0.1",
		"3000",
		false,
		"testRoom",
		"MyName",
		httpClient,
		false,
	)

	// Login an existing user
	err := restClient.Login(rest.Credentials{Login: "login", Password: "pass"})
	if err != nil {
		panic(err)
	}

	// Send a message
	// check err in real project
	_ = restClient.SendMessage(rest.Message{MessageText: "hello"})
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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