common

package
v0.7.21 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package common implements common nexus command options.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(cfg *config.Config) error

Init initializes the common environment.

func NewClient

func NewClient(cfg *config.StorageConfig, logger *log.Logger) (storage.TargetStorage, error)

NewClient creates a new client to target storage.

func PprofRun added in v0.7.10

func PprofRun(ctx context.Context, endpoint string, logger *log.Logger) error

PprofRun runs the pprof server.

func RootLogger added in v0.2.8

func RootLogger() *log.Logger

RootLogger returns the logger defined by logging flags.

func RunServer added in v0.7.10

func RunServer(ctx context.Context, server *http.Server, logger *log.Logger) error

RunServer is a context-aware wrapper around http.Server.ListenAndServe.

Types

This section is empty.

Jump to

Keyboard shortcuts

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