server

package
v0.0.0-...-692e367 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const MWAuthenticate server.KindMiddleware = "mwauthenticate"

Variables

This section is empty.

Functions

func ExampleHTTPServerHandler

func ExampleHTTPServerHandler(w http.ResponseWriter, r *http.Request)

ExampleHTTPServerHandler server definitions

func NewExampleGRPCServerInterceptor

func NewExampleGRPCServerInterceptor(r runtime.Runtime) server.GRPCInterceptor

func RegisterExampleHTTPServerMiddleware

func RegisterExampleHTTPServerMiddleware(runtime runtime.Runtime, service servicepb.ExampleServices) server.HttpServerMiddleware

Types

type Data

type Data string

type ExampleGRPCServerInterceptor

type ExampleGRPCServerInterceptor struct {
	server.GRPCInterceptor
	// contains filtered or unexported fields
}

func (*ExampleGRPCServerInterceptor) Interceptor

func (i *ExampleGRPCServerInterceptor) Interceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (resp interface{}, err error)

func (*ExampleGRPCServerInterceptor) Kind

type ExampleHTTPServerMiddleware

type ExampleHTTPServerMiddleware struct {
	server.DefaultHttpServerMiddleware
	// contains filtered or unexported fields
}

func (*ExampleHTTPServerMiddleware) Apply

func (*ExampleHTTPServerMiddleware) Kind

type Handlers

type Handlers struct {
	servicepb.ExampleRpcServer
	// contains filtered or unexported fields
}

func (Handlers) HelloWorld

Jump to

Keyboard shortcuts

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