forked from mtusi2026/mtusi2026lab3
Перенести актуальную lab2 как базу lab3
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
// Package controller connects transport lifecycles to Fx.
|
||||
package controller
|
||||
|
||||
import "context"
|
||||
|
||||
// Controller is a process-owned transport server.
|
||||
type Controller interface {
|
||||
// Start acquires the listener and reports startup errors to the lifecycle owner.
|
||||
Start(context.Context) error
|
||||
// Stop stops accepting work and drains active requests within the supplied deadline.
|
||||
Stop(context.Context) error
|
||||
}
|
||||
Reference in New Issue
Block a user