server

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrSendBlock

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

func NewErrSendBlock

func NewErrSendBlock(inner error) ErrSendBlock

func (ErrSendBlock) Error

func (e ErrSendBlock) Error() string

type InfoServerWrapper added in v1.7.0

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

func (*InfoServerWrapper) Info added in v1.7.0

Info implements pbsubstreamsrpcconnect.EndpointInfoHandler.

type Option

type Option func(*Server)

func WithEnforceCompression added in v1.7.0

func WithEnforceCompression(enforce bool) Option

func WithLeakyBucketLimiter

func WithLeakyBucketLimiter(size int, dripRate time.Duration) Option

func WithSessionPool added in v1.11.1

func WithSessionPool(sessionPool dsession.SessionPool) Option

type Server

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

func New

func New(
	transformRegistry *transform.Registry,
	streamFactory *firecore.StreamFactory,
	blockGetter *firehose.BlockGetter,
	logger *zap.Logger,
	authenticator dauth.Authenticator,
	isReady func(context.Context) bool,
	listenAddr string,
	serviceDiscoveryURL *url.URL,
	infoServer *info.InfoServer,
	opts ...Option,
) *Server

func (*Server) Blocks

Blocks(context.Context, *connect.Request[v2.Request], *connect.ServerStream[v2.Response]) error

func (*Server) Launch

func (s *Server) Launch()

func (*Server) OnTerminated added in v1.6.7

func (s *Server) OnTerminated(f func(error))

func (*Server) Shutdown added in v1.6.7

func (s *Server) Shutdown(timeout time.Duration)

Jump to

Keyboard shortcuts

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