server

package
v0.0.0-...-5679451 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

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, 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) 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