guessit

package
v0.0.0-...-e0fb3b4 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package guessit contains a client for GueaaS using the scalable protocols (nanomsg) interface.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrHandshakeError       = errors.New("server returned error during handshake")
	ErrBackgroundWorkerDead = errors.New("background worker is dead")
)

Functions

This section is empty.

Types

type Client

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

func Dial

func Dial(addr string) (*Client, error)

func (*Client) Close

func (c *Client) Close() error

func (*Client) Results

func (c *Client) Results() <-chan Result

func (*Client) Send

func (c *Client) Send(id uint64, input string) error

type MappedResult

type MappedResult struct {
	Item   interface{}
	Result *common.GuessitResult
}

type MappingClient

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

func DialMapping

func DialMapping(addr string) (*MappingClient, error)

func (*MappingClient) Close

func (m *MappingClient) Close() error

func (*MappingClient) Results

func (m *MappingClient) Results() <-chan MappedResult

func (*MappingClient) Send

func (m *MappingClient) Send(item interface{}, input string) error

type Result

type Result struct {
	ID     uint64
	Result *common.GuessitResult
}

Jump to

Keyboard shortcuts

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