reversetwirp

package
v1.6.4 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReverseTwirp

type ReverseTwirp struct {
	Target http.Handler
	Path   string
}

func NewSingleTwirpServerProxy

func NewSingleTwirpServerProxy(svr TwirpServer) *ReverseTwirp

func (*ReverseTwirp) Handle

func (t *ReverseTwirp) Handle(method string) http.HandlerFunc

type TwirpServer

type TwirpServer interface {
	http.Handler
	// PathPrefix returns the HTTP URL path prefix for all methods handled by this
	// service. This can be used with an HTTP mux to route twirp requests
	// alongside non-twirp requests on one HTTP listener.
	PathPrefix() string
}

Jump to

Keyboard shortcuts

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