wildlink

package module
v0.0.0-...-d9fa6d2 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIError

type APIError struct {
	ErrorMessage string
}

func (APIError) Empty

func (e APIError) Empty() bool

func (APIError) Error

func (e APIError) Error() string

type AnalyzeParams

type AnalyzeParams struct {
	Content string
}

type AnalyzeResult

type AnalyzeResult struct {
	ContentPart []string `json:"ContentPart,omitempty"`
	URL         string   `json:"URL,omitempty"`
}

type AnalyzeResultIterator

type AnalyzeResultIterator interface {
	Next() bool
	Scan() (*AnalyzeResult, error)
	Err() error
	Close() error
}

type Client

type Client struct {
	sync.Mutex

	DeviceService  *DeviceService
	ConceptService *ConceptService
	NLPService     *NLPService
	// contains filtered or unexported fields
}

func NewClient

func NewClient(httpClient *http.Client) *Client

func (*Client) Connect

func (c *Client) Connect() error

func (*Client) Device

func (c *Client) Device() *Device

func (*Client) SetAppID

func (c *Client) SetAppID(id uint64) *Client

func (*Client) SetAppKey

func (c *Client) SetAppKey(key string) *Client

func (*Client) SetAuthHeaders

func (c *Client) SetAuthHeaders(s *sling.Sling) *sling.Sling

func (*Client) SetDevice

func (c *Client) SetDevice(device *Device) *Client

type Concept

type Concept struct {
	ID    string `json:"ID,omitempty"`
	Value string `json:"Value,omitempty"`
	URL   string `json:"URL,omitempty"`
}

type ConceptIterator

type ConceptIterator interface {
	Next() bool
	Scan() (*Concept, error)
	Err() error
	Close() error
}

type ConceptListParams

type ConceptListParams struct {
	Query  string `url:"q,omitempty"`
	Limit  uint64 `url:"limit,omitempty"`
	Cursor string `url:"cursor,omitempty"`
}

type ConceptResults

type ConceptResults struct {
	Concepts   []*Concept
	PrevCursor string
	NextCursor string
}

type ConceptService

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

func (*ConceptService) List

type Device

type Device struct {
	ID    uint64 `json:"DeviceID,omitempty"`
	Key   string `json:"DeviceKey,omitempty"`
	Token string `json:"DeviceToken,omitempty"`
}

type DeviceService

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

type NLPService

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

func (*NLPService) ListAnalysis

func (s *NLPService) ListAnalysis(params *AnalyzeParams) (AnalyzeResultIterator, error)

Jump to

Keyboard shortcuts

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