gitee.com/sy_183/go-common@v1.0.5-0.20231205030221-958cfe129b47/system/service/service.go (about)

     1  package svc
     2  
     3  // Service interface specifies the behavior of the system service
     4  type Service interface {
     5  	// Run method is the main function of program running. The Run method
     6  	// needs to include the implementation of notifying the system service
     7  	// daemon(e.g. linux systemd or Windows service manager) when the
     8  	// program starts, exits, or has errors
     9  	Run() (exitCode int)
    10  }