serve

package
v0.0.0-...-f038164 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectEndpoint

type ConnectEndpoint struct {
	Name           string
	Service        any
	Path           string
	Handler        http.Handler
	Middlewares    chi.Middlewares
	HandlerOptions []connect_go.HandlerOption
	ClientOptions  []connect_go.ClientOption
	NewHandler     any // func(svc T, opts ...connect_go.HandlerOption) (string, http.Handler)
	NewClient      any // func(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) T
}

func (*ConnectEndpoint) MountConnect

func (ep *ConnectEndpoint) MountConnect(r chi.Router)

func (*ConnectEndpoint) String

func (ep *ConnectEndpoint) String() string

type ConnectServiceDesc

type ConnectServiceDesc[T any] struct {
	Name       string
	Service    T
	NewHandler func(svc T, opts ...connect_go.HandlerOption) (string, http.Handler)
	NewClient  func(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) T
}

Jump to

Keyboard shortcuts

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