2
0
mirror of https://github.com/lightninglabs/loop synced 2024-11-11 13:11:12 +00:00
loop/swap/type.go

24 lines
306 B
Go
Raw Normal View History

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"
}
}