Documentation
¶
Overview ¶
How long a window waits on each call it makes of its server: a call answered at once is given up once the wait set passed, a call long by its nature is waited on as long as it takes, and a stream stays open while it keeps coming or its server still answers when asked
Index ¶
- Constants
- func Deadline(class Class, wait time.Duration) time.Duration
- func Quiet(class Class, wait time.Duration) time.Duration
- func Repeatable(procedure string, idempotent bool) bool
- func Title(procedure string) string
- func Waited(wait time.Duration) time.Duration
- type Class
- type Silent
- type TimedOut
Constants ¶
const Least = 5 * time.Second
Least wait a call is given, a shorter wait set counting as this; none set waits as long as it takes
const Offered = 30 * time.Second
How long a window offers to ask a call again once its server did not answer it in time, before the call is given up
Variables ¶
This section is empty.
Functions ¶
func Deadline ¶
How long a call of the class is given before it is given up, under the wait set; none for a call that is not given up
func Quiet ¶
How long a call of the class may send nothing before its server is asked whether it still answers, under the wait set; none for a call that is never asked after
func Repeatable ¶
Whether a call of the procedure may be asked again with no harm: its service says it changes nothing or changes nothing more for being asked twice (the idempotency of its method, given as the level connect carries), else the name of its method begins with a word that only reads. Any other call may have changed something before its answer was lost
Types ¶
type Class ¶
type Class int
Kinds of call by how long a window waits on them
const ( // A call answered at once, given up once the wait set passed Prompt Class = iota // A call long by its nature, such as an install, a download or a backup, waited on as long as it takes Long // A stream, open as long as it keeps coming: once it sent nothing for the wait set its server is asked whether it still answers, and // the stream is let go when it does not Stream )