loop: add initiator string to user agent

This commit is contained in:
Oliver Gugger 2020-11-06 10:43:03 +01:00
parent e6e533aeda
commit 2a732a4385
No known key found for this signature in database
GPG key ID: 8E4256593F177720
8 changed files with 43 additions and 21 deletions

View file

@ -81,6 +81,11 @@ type OutRequest struct {
// Label contains an optional label for the swap.
Label string
// Initiator is an optional string that identifies what software
// initiated the swap (loop CLI, autolooper, LiT UI and so on) and is
// appended to the user agent string.
Initiator string
}
// Out contains the full details of a loop out request. This includes things
@ -196,6 +201,11 @@ type LoopInRequest struct {
// Label contains an optional label for the swap.
Label string
// Initiator is an optional string that identifies what software
// initiated the swap (loop CLI, autolooper, LiT UI and so on) and is
// appended to the user agent string.
Initiator string
}
// LoopInTerms are the server terms on which it executes loop in swaps.