muxer

package
v1.0.0-beta.61 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: Apache-2.0 Imports: 20 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
}

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
}

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)

func (*Muxer) Start

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

type Server

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

Jump to

Keyboard shortcuts

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