openlistlib

package
v0.0.0-...-8cb85fc Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForceDBSync

func ForceDBSync() error

ForceDBSync forces SQLite WAL checkpoint to sync data to main database file

func GetOutboundIP

func GetOutboundIP() (net.IP, error)

func GetOutboundIPString

func GetOutboundIPString() string

func Init

func Init(event Event, cb LogCallback) error

func IsRunning

func IsRunning(t string) bool

func SetAdminPassword

func SetAdminPassword(pwd string)

func SetConfigData

func SetConfigData(path string)

func SetConfigDebug

func SetConfigDebug(b bool)

func SetConfigLogStd

func SetConfigLogStd(b bool)

func SetConfigNoPrefix

func SetConfigNoPrefix(b bool)

func Shutdown

func Shutdown(timeout int64) (err error)

Shutdown timeout 毫秒

func Start

func Start()

Start starts the server

Types

type Event

type Event interface {
	OnStartError(t string, err string)
	OnShutdown(t string)
	OnProcessExit(code int)
}

type LogCallback

type LogCallback interface {
	OnLog(level int16, time int64, message string)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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