Debian Codegraph @

pkg/services/standard/standard.go

raw
1 package standard
2
3 import (
4 "time"
5
6 "github.com/nicholas-fedor/shoutrrr/pkg/types"
7 )
8
9 // Standard implements the Logger and Templater parts of the Service interface.
10 type Standard struct {
11 Logger
12 Templater
13 }
14
15 // ServiceTimeout reports [types.DefaultSendTimeout].
16 //
17 // A service with a longer limit overrides this method.
18 //
19 // Parameters:
20 // - params: Unused. The default budget does not depend on send parameters.
21 //
22 // Returns:
23 // - [types.DefaultSendTimeout].
24 func (Standard) ServiceTimeout(*types.Params) time.Duration {
25 return types.DefaultSendTimeout
26 }