client

package
v0.0.0-...-ae1670a Latest Latest
Warning

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

Go to latest
Published: May 19, 2017 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientSendMessageTask

type ClientSendMessageTask struct {
	app.Task
	Message kk.Message
}

type Config

type Config struct {
	Name    string
	Address string
	Options map[string]interface{}
}

type IClientTask

type IClientTask interface {
	GetClientName() string
	GetInhertType() string
}

type RequestTask

type RequestTask struct {
	app.Task
	Name        string
	TrackId     string
	RequestTask app.ITask
	Request     interface{}
	Result      interface{}
	Timeout     time.Duration
}

type Service

type Service struct {
	app.Service
	Config Config
	// contains filtered or unexported fields
}

func (*Service) Handle

func (S *Service) Handle(a app.IApp, task app.ITask) error

func (*Service) HandleClientSendMessageTask

func (S *Service) HandleClientSendMessageTask(a app.IApp, task *ClientSendMessageTask) error

func (*Service) HandleInitTask

func (S *Service) HandleInitTask(a app.IApp, task *app.InitTask) error

func (*Service) HandleRequestTask

func (S *Service) HandleRequestTask(a app.IApp, task *RequestTask) error

type WithService

type WithService struct {
	app.Service
	Prefix     string
	Timeout    time.Duration
	InhertType string
}

func (*WithService) Handle

func (S *WithService) Handle(a app.IApp, task app.ITask) error

Jump to

Keyboard shortcuts

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