clusterserver

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package clusterserver provides cluster server component routing services.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	BindAddr string `fig:"bind_addr"`
	Port     int    `fig:"port" default:"14369"`
}

Config contains Server configuration parameters.

type Server

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

Server represents cluster server type.

func New

func New(
	cfg Config,
	localRouter *c2s.LocalRouter,
	comps *component.Components,
	streamQueueMap *streamqueue.QueueMap,
	logger kitlog.Logger,
) *Server

New returns a new initialized Server instance.

func (*Server) Start

func (s *Server) Start(_ context.Context) error

Start starts cluster server.

func (*Server) Stop

func (s *Server) Stop(_ context.Context) error

Stop stops cluster server.

Jump to

Keyboard shortcuts

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