metadataserver

package
v0.0.0-...-75a7993 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoint

type Endpoint interface {
	Store() store.Store
}

type HTTPEndpoint

type HTTPEndpoint interface {
	Endpoint

	http.Handler
}

type HTTPServer

type HTTPServer struct {
	*core.Server
	// contains filtered or unexported fields
}

func NewHTTPServer

func NewHTTPServer(c *core.Server, s store.Store, d time.Duration) (*HTTPServer, error)

func (*HTTPServer) ServeHTTP

func (s *HTTPServer) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Router

type Router struct {
	*core.Server
	// contains filtered or unexported fields
}

func NewRouter

func NewRouter(c *core.Server, s store.Store) *Router

func (*Router) Match

func (r *Router) Match(typeURI string) Endpoint

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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