server

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: MIT Imports: 53 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, s Server, logger *fauxlog.Logger, maxDepth int) 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 FrameTracker added in v0.18.0

type FrameTracker struct {
	// contains filtered or unexported fields
}

func NewFrameTracker added in v0.18.0

func NewFrameTracker(limit int) *FrameTracker

func (*FrameTracker) Add added in v0.18.0

func (ft *FrameTracker) Add(msg proto.Message)

func (*FrameTracker) Frames added in v0.18.0

func (ft *FrameTracker) Frames() []json.RawMessage

type Server added in v0.0.19

type Server interface {
	registry.ServiceRegistry
	stubs.StubDatabase
	GetStats() *metrics.Stats
	IncrementTotalRequests()
	IncrementErrors()
	GetLogger() *fauxlog.Logger
	GetMaxDepth() int
	GetProxyTo() string
	GetRecordDir() string
	GetProxyClient() *http.Client
}

type ServerOpts added in v0.3.0

type ServerOpts struct {
	Version       string
	RenderDocPage bool
	UseReflection bool
	WithHTTPLog   bool
	WithValidate  bool
	OnlyStubs     bool
	NoCORS        bool
	Addr          string
	HTTPS         bool
	WithDashboard bool
	MaxDepth      int
	ProxyTo       string
	RecordDir     string
}

Jump to

Keyboard shortcuts

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