18 lines
321 B
Go
18 lines
321 B
Go
|
package history
|
||
|
|
||
|
import "kumoly.io/kumoly/app/system"
|
||
|
|
||
|
type Service struct {
|
||
|
system.BaseService
|
||
|
}
|
||
|
|
||
|
func (srv Service) GetName() string { return "history.Service" }
|
||
|
func (srv Service) IsService() bool { return true }
|
||
|
func (srv Service) Main() error {
|
||
|
Start(DBReceiver)
|
||
|
return nil
|
||
|
}
|
||
|
func (srv Service) Del() {
|
||
|
Stop()
|
||
|
}
|