api

package
v0.0.2-testing Latest Latest
Warning

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

Go to latest
Published: May 17, 2017 License: MIT Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	APIKey       string
	BaseURL      string
	RefreshToken string
	AccessToken  string
	// contains filtered or unexported fields
}

API interface for sca backend

func New

func New(apiKey, refreshToken, baseURL string) (*API, error)

New constructor for API

func (*API) Send

func (a *API) Send(data map[string]interface{}) error

Send data to api with deduction of common value since last update

type QueueItem

type QueueItem struct {
	Type string
	Path string
	Data interface{}
}

QueueItem represente a elemetn of action to send to API

Jump to

Keyboard shortcuts

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