reversetwirp

package
v1.2.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ParamTransfer

type ParamTransfer func(key, value string) interface{}

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, tr ParamTransfer) 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