muxer

package
v1.0.0-beta.122 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GRPCServer

type GRPCServer struct {
	*grpc.Server
	ServeTLS bool
}

func NewGRPCServer

func NewGRPCServer(cfg *config.Config) *GRPCServer

func (*GRPCServer) Start

func (s *GRPCServer) Start(mux cmux.CMux) error

type HTTPServer

type HTTPServer struct {
	Router chi.Router
	Inproc *inprocgrpc.Channel

	UnixSocket bool
	// contains filtered or unexported fields
}

func NewHTTPServer

func NewHTTPServer(cfg *config.Config) *HTTPServer

func (*HTTPServer) SetupMiddlewares

func (s *HTTPServer) SetupMiddlewares(cfg *config.Config)

func (*HTTPServer) Start

func (s *HTTPServer) Start(mux cmux.CMux) error

type Muxer

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

func NewMuxer

func NewMuxer(cfg *config.Config) *Muxer

func (*Muxer) RegisterServices

func (m *Muxer) RegisterServices(cfg *config.ServerConfig, kvStore kv.TxStore, searchStore search.Store, tenantMgr *metadata.TenantManager, txMgr *transaction.Manager, forSearchTxMgr *transaction.Manager, biller billing.Provider)

func (*Muxer) Start

func (m *Muxer) Start(host string, port int16, unix string)

type Server

type Server interface {
	Start(mux cmux.CMux) error
}

type UnixPeerCredentials

type UnixPeerCredentials struct {
	credentials.TransportCredentials
}

func (*UnixPeerCredentials) ServerHandshake

func (*UnixPeerCredentials) ServerHandshake(conn net.Conn) (net.Conn, credentials.AuthInfo, error)

Jump to

Keyboard shortcuts

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