Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interceptor ¶ added in v0.29.0
type Interceptor struct {
// contains filtered or unexported fields
}
Interceptor - сервис перехвата системных событий с целью корректной (graceful) остановки всего приложения.
func NewInterceptor ¶ added in v0.29.0
NewInterceptor - создаёт объект Interceptor и возвращает контекст, в котором установлена его отмена при перехвате системного события.
func (*Interceptor) Caption ¶ added in v0.29.0
func (p *Interceptor) Caption() string
Caption - возвращает название сервиса.
func (*Interceptor) ReadyTimeout ¶ added in v0.29.0
func (p *Interceptor) ReadyTimeout() time.Duration
ReadyTimeout - возвращает максимальное время, за которое должен быть запущен сервис.
Click to show internal directories.
Click to hide internal directories.