client

package
v10.98.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIClient

type APIClient interface {
	// SendRequest will send a request to the server.
	SendRequest(event *common.EventInfo) error
}

APIClient is the interface of the API client

type Client

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

Client is an api client structure.

func NewClient

func NewClient(path string) (*Client, error)

NewClient creates a new client.

func (*Client) SendRequest

func (c *Client) SendRequest(event *common.EventInfo) error

SendRequest sends a request to the remote. TODO: Add retries

Jump to

Keyboard shortcuts

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