server

package
v0.15.25 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: MIT Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(service protoreflect.ServiceDescriptor, faker fauxrpc.ProtoFaker, validate *protovalidate.Validator) http.Handler

func NewServer added in v0.0.19

func NewServer(opts ServerOpts) (*server, error)

func NewWrappedHandler added in v0.0.19

func NewWrappedHandler() *wrappedHandler

Types

type Server added in v0.0.19

type Server interface {
	registry.ServiceRegistry
	stubs.StubDatabase
}

type ServerOpts added in v0.3.0

type ServerOpts struct {
	Version       string
	RenderDocPage bool
	UseReflection bool
	WithHTTPLog   bool
	WithValidate  bool
	OnlyStubs     bool
	NoCORS        bool
}

Jump to

Keyboard shortcuts

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