client

package
v0.0.0-...-66eb22f Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JClient

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

func New

func New(ip string, port int, password string) (*JClient, error)

func (*JClient) AddTask

func (this *JClient) AddTask(id int64, language string, code string) (map[string]interface{}, error)

add task

func (*JClient) GetStatus

func (this *JClient) GetStatus(id int64) (map[string]interface{}, error)

get task status

func (*JClient) Ping

func (this *JClient) Ping() error

ping

func (*JClient) Request

func (this *JClient) Request(msg map[string]interface{}) (map[string]interface{}, error)

send request

func (*JClient) SetDebug

func (this *JClient) SetDebug(flag bool)

func (*JClient) Start

func (this *JClient) Start(ip string, port int, password string) error

start the session

Jump to

Keyboard shortcuts

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