options

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2025 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger *zap.Logger

Functions

func GetTLSConfig

func GetTLSConfig(targetURL string) (*tls.Config, error)

GetTLSConfig returns a TLS configuration appropriate for the current environment. In production mode, it uses standard certificate verification. In development mode, it allows self-signed certificates for localhost/127.0.0.1.

Types

type Options

type Options struct {
	DbFilename       string
	MetaFilename     string
	DoReset          bool
	BootstrapConnect string
	ServerId         uint64
	Region           string
	AdvertiseAddress string
	AdvertisePort    uint
	ApiKey           string
	SocketPath       string
	DevelopmentMode  bool
	MaxCacheSize     uint64 // Maximum cache size in bytes (0 = auto-detect)
	// contains filtered or unexported fields
}
var CurrentOptions *Options

func (*Options) GetFn

func (o *Options) GetFn() int64

func (*Options) GetFz

func (o *Options) GetFz() int64

func (*Options) SetFn

func (o *Options) SetFn(fn int64)

func (*Options) SetFz

func (o *Options) SetFz(fz int64)

Jump to

Keyboard shortcuts

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