logpusher

package
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 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// PostActionURL API endpoint of logpusher
	PostActionURL = "https://api.logpusher.com/api/agent/savelog"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client all parameter about log or exceptions.

func New

func New(email, password, apiKey string) Client

New Get API key from logpusher.com

func (*Client) AutoPush

func (c *Client) AutoPush(message, source, category, logtype string) (result PushResult, err error)

AutoPush quick push. will Date,Time and EventID fields auto generate by function

func (*Client) Push

func (c *Client) Push(message, source, category, logtype, eventid string, logtime time.Time, createdate time.Time) (result PushResult, err error)

Push save log over logpusher

type PushResult

type PushResult struct {
	Message string `json:"message"`
}

PushResult model

Jump to

Keyboard shortcuts

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