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

          Directories

          Path Synopsis
          Package mockclient is a generated GoMock package.
          Package mockclient is a generated GoMock package.