lpusherlib

module
v0.0.0-...-4dec195 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2020 License: Apache-2.0

README

LogPusher: Log tracking for Go

LogPusher is a system that allows you to receive notifications through your mobile on a single application. Apart from push notifications, you can also receive information without a mobile client via SMS and Mail service. You can integrate with any software through the API. Thanks to rapid API integration, you do not spend extra time for information and mail service.

LogPusher is easy to use on the client side thanks to its simple interface. Just generate API key trough our control panel and you are ready to go.

Getting started

  1. Create a LogPusher account
  2. Create a new App and get API Token

Installation

go get logpusher

Usage

package main

import (
	"fmt"
	"lpusherlib/src"
	"time"
)

func main() {

	client := logpusher.New("me@amazon.com", "strongpass", "logpusherapikey")

	result, err := client.Push("My awesome log message",
		"myawesomesite.com",
		"E-commerce",
		"Notice",
		"EVENT0",
		time.Now(),
		time.Now(),
	)

	if err != nil {
		panic(err.Error())
	}

	fmt.Println(result)
}

Support

Contributing

  1. Fork it ( https://github.com/LogPusher/logpusher-go/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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