server

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: MIT Imports: 50 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package server implements the cpfs server command and owns its lifecycle.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

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

Command owns the cpfs server command and its component lifetimes.

func New

func New(gateway conf.GatewayOptions) *Command

New constructs the command with the selected global gateway options.

func (*Command) Help

func (*Command) Help() string

func (*Command) Init

func (c *Command) Init(args ...string) error

func (*Command) Name

func (*Command) Name() string

func (*Command) Run

func (c *Command) Run(...string) error

type MetaServer

type MetaServer struct {
	Identity cluster.Config
	// contains filtered or unexported fields
}

MetaServer owns one physical Meta replica. Consensus never selects a service by a role enum: the Meta state machine wires namespace and placement domains.

func (*MetaServer) Run

func (s *MetaServer) Run(ctx context.Context) (result error)

type MetadataReplicaServer

type MetadataReplicaServer struct {
	Identity cluster.Config
	// contains filtered or unexported fields
}

MetadataReplicaServer owns a replication-only eventual Meta process. It opens no Namespace RAM view or placement index and serves no files. Optional Gateway registration exposes only its fixed follower route. Native state is available only through the authenticated, pinned replication stream.

func (*MetadataReplicaServer) Run

func (s *MetadataReplicaServer) Run(ctx context.Context) (result error)

Jump to

Keyboard shortcuts

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