Help us shape the future of Go! Take the 2026 Go Developer Survey

handler

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2018 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

NewHTTPHandler returns a new HTTP request handler.

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