handler

package
v0.0.0-...-964918b Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

README

worker跟server之间的api交互,获取事件和告知事件结果

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpHandler

type HttpHandler struct {
	BaseURL string
}

HttpHandler identifies the type of a http handler

func NewHttpHandler

func NewHttpHandler(baseUrl string) *HttpHandler

func (*HttpHandler) GetEvent

func (ap *HttpHandler) GetEvent(eventID string, response *api.GetEventResponse) error

GetEvent retrieves a event from event ID.

func (*HttpHandler) SetEvent

func (ap *HttpHandler) SetEvent(eventID string, event *api.SetEvent, response *api.SetEventResponse) error

SetEvent set a event.

Jump to

Keyboard shortcuts

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