register

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2016 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package register - A collection of types used for registering endpoints across the leaps library.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EndpointRegister

type EndpointRegister interface {
	// Register - Register an endpoint handler with a description.
	Register(endpoint, description string, handler http.HandlerFunc)
}

EndpointRegister - An interface for registering HTTP API endpoints.

type PubPrivEndpointRegister

type PubPrivEndpointRegister interface {
	// RegisterPrivate - Register a public endpoint handler with a description.
	RegisterPublic(endpoint, description string, handler http.HandlerFunc) error

	// RegisterPrivate - Register a private endpoint handler with a description.
	RegisterPrivate(endpoint, description string, handler http.HandlerFunc) error
}

PubPrivEndpointRegister - An interface for registering public or private HTTP API endpoints. The public endpoints are user facing and the private endpoints are intended for internal administrative usage.

Jump to

Keyboard shortcuts

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