MCPcopy
hub / github.com/syncthing/syncthing / App

Struct App

lib/syncthing/syncthing.go:62–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62type App struct {
63 myID protocol.DeviceID
64 mainService *suture.Supervisor
65 cfg config.Wrapper
66 sdb db.DB
67 evLogger events.Logger
68 cert tls.Certificate
69 opts Options
70 exitStatus svcutil.ExitStatus
71 err error
72 stopOnce sync.Once
73 mainServiceCancel context.CancelFunc
74 stopped chan struct{}
75 dbService db.DBService
76
77 // Access to internals for direct users of this package. Note that the interface in Internals is unstable!
78 Internals *Internals
79}
80
81func New(cfg config.Wrapper, sdb db.DB, evLogger events.Logger, cert tls.Certificate, opts Options) (*App, error) {
82 a := &App{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected