client

package
v10.301.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2021 License: Apache-2.0 Imports: 9 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

Directories

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

Jump to

Keyboard shortcuts

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