项目作者: LogPusher

项目描述 :
LogPusher: Log tracking for Go
高级语言: Go
项目地址: git://github.com/LogPusher/logpusher-go.git
创建时间: 2018-01-13T13:35:28Z
项目社区:https://github.com/LogPusher/logpusher-go

开源协议:Apache License 2.0

下载


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

  1. go get github.com/LogPusher/logpusher-go/src

Usage

  1. package main
  2. import (
  3. "fmt"
  4. "github.com/LogPusher/logpusher-go/src"
  5. "time"
  6. )
  7. func main() {
  8. client := logpusher.New("me@amazon.com", "strongpass", "logpusherapikey")
  9. result, err := client.Push("My awesome log message",
  10. "myawesomesite.com",
  11. "E-commerce",
  12. "Notice",
  13. "EVENT0",
  14. time.Now(),
  15. time.Now(),
  16. )
  17. if err != nil {
  18. panic(err.Error())
  19. }
  20. fmt.Println(result)
  21. }

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