modules

package
v0.0.0-...-5092741 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2016 License: MIT Imports: 1 Imported by: 4

Documentation

Overview

This is HDX modules control package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(module string, conn *shared.ConnInfo)

func Get

func Get(module string, conn *shared.ConnInfo)

func IsExist

func IsExist(name string) bool

IsExist check whether a module exist

func Patch

func Patch(module string, conn *shared.ConnInfo)

func Post

func Post(module string, conn *shared.ConnInfo)

func Put

func Put(module string, conn *shared.ConnInfo)

func Register

func Register(name string, module Requester)

Register makes a HDX module available to be called with HTTP methods. This is intended to be called from the init function in packages that implement the module.

Types

type Requester

type Requester interface {
	Get(*shared.ConnInfo)
	Post(*shared.ConnInfo)
	Put(*shared.ConnInfo)
	Patch(*shared.ConnInfo)
	Delete(*shared.ConnInfo)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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