server

package
v2.13.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	GrpcKeepAliveTime = 15 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DpServer

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

func NewDpServer

func NewDpServer(config dp_server.DpServerConfig, metrics metrics.Metrics, filter Filter) *DpServer

func (*DpServer) GrpcServer

func (d *DpServer) GrpcServer() *grpc.Server

func (*DpServer) HTTPMux

func (d *DpServer) HTTPMux() *http.ServeMux

func (*DpServer) NeedLeaderElection

func (d *DpServer) NeedLeaderElection() bool

func (*DpServer) Ready

func (d *DpServer) Ready() bool

func (*DpServer) SetFilter

func (d *DpServer) SetFilter(filter Filter)

func (*DpServer) Start

func (d *DpServer) Start(stop <-chan struct{}) error

type Filter

type Filter func(writer http.ResponseWriter, request *http.Request) bool

Jump to

Keyboard shortcuts

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