v4

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2014 License: LGPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAPIHandler

func NewAPIHandler(store *charmstore.Store, config charmstore.ServerParams) http.Handler

NewAPIHandler returns a new Handler as an http Handler. It is defined for the convenience of callers that require a charmstore.NewAPIHandlerFunc.

func ResolveURL

func ResolveURL(store *charmstore.Store, url *charm.Reference) error

ResolveURL resolves the series and revision of the given URL if either is unspecified by filling them out with information retrieved from the store.

Types

type Handler

type Handler struct {
	*router.Router
	// contains filtered or unexported fields
}

func New

func New(store *charmstore.Store, config charmstore.ServerParams) *Handler

New returns a new instance of the v4 API handler.

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, req *http.Request)

type PublishedResponse

type PublishedResponse struct {
	Id        *charm.Reference
	Published time.Time
}

Jump to

Keyboard shortcuts

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