Documentation
¶
Index ¶
- func ForceDBSync() error
- func GetOutboundIP() (net.IP, error)
- func GetOutboundIPString() string
- func Init(event Event, cb LogCallback) error
- func IsRunning(t string) bool
- func SetAdminPassword(pwd string)
- func SetConfigData(path string)
- func SetConfigDebug(b bool)
- func SetConfigLogStd(b bool)
- func SetConfigNoPrefix(b bool)
- func Shutdown(timeout int64) (err error)
- func Start()
- type Event
- type LogCallback
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 GetOutboundIPString ¶
func GetOutboundIPString() string
func Init ¶
func Init(event Event, cb LogCallback) error
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)
Types ¶
type LogCallback ¶
Click to show internal directories.
Click to hide internal directories.