handler

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 10, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package handler provides http handlers

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	// standard http handler
	http.Handler
	// name of handler
	String() string
}

Handler represents a HTTP handler that manages a request

type Option

type Option func(o *Options)

func WithNamespace

func WithNamespace(s string) Option

WithNamespace specifies the namespace for the handler

func WithRouter

func WithRouter(r router.Router) Option

WithRouter specifies a router to be used by the handler

func WithService

func WithService(s micro.Service) Option

WithService specifies a micro.Service

type Options

type Options struct {
	Namespace string
	Router    router.Router
	Service   micro.Service
}

func NewOptions

func NewOptions(opts ...Option) Options

NewOptions fills in the blanks

Directories

Path Synopsis
Package api provides an http-rpc handler which provides the entire http request over rpc
Package api provides an http-rpc handler which provides the entire http request over rpc
Package broker provides a go-micro/broker handler
Package broker provides a go-micro/broker handler
Package cloudevents provides a cloudevents handler publishing the event using the go-micro/client
Package cloudevents provides a cloudevents handler publishing the event using the go-micro/client
Package event provides a handler which publishes an event
Package event provides a handler which publishes an event
Package file serves file relative to the current directory
Package file serves file relative to the current directory
Package http is a http reverse proxy handler
Package http is a http reverse proxy handler
Package registry is a go-micro/registry handler
Package registry is a go-micro/registry handler
Package rpc is a go-micro rpc handler.
Package rpc is a go-micro rpc handler.
Package udp reads and write from a udp connection
Package udp reads and write from a udp connection
Package unix reads from a unix socket expecting it to be in /tmp/path
Package unix reads from a unix socket expecting it to be in /tmp/path
Package web contains the web handler including websocket support
Package web contains the web handler including websocket support

Jump to

Keyboard shortcuts

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