http

package
v0.0.0-...-9989f86 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2016 License: GPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpCommand

type HttpCommand struct {
	Method string `json:"method"`
	Url    string `json:"url"`
	Cmd    string `json:"cmd"`
	// contains filtered or unexported fields
}

func New

func New(method, url, cmd string, matchWords bool) (*HttpCommand, error)

func (*HttpCommand) Endpoint

func (c *HttpCommand) Endpoint() endpoint.Endpoint

func (*HttpCommand) Match

func (c *HttpCommand) Match(in string) (req interface{}, ok bool)

func (*HttpCommand) Response

func (c *HttpCommand) Response(res interface{}) (*message.Message, error)

Jump to

Keyboard shortcuts

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