mirror of https://github.com/lightninglabs/loop
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
306 B
Go
24 lines
306 B
Go
package swap
|
|
|
|
// Type indicates the type of swap.
|
|
type Type uint8
|
|
|
|
const (
|
|
// TypeIn is a loop in swap.
|
|
TypeIn Type = iota
|
|
|
|
// TypeOut is a loop out swap.
|
|
TypeOut
|
|
)
|
|
|
|
func (t Type) String() string {
|
|
switch t {
|
|
case TypeIn:
|
|
return "In"
|
|
case TypeOut:
|
|
return "Out"
|
|
default:
|
|
return "Unknown"
|
|
}
|
|
}
|