Documentation
¶
Index ¶
- func CalculateFeeEstimate(fees *boltzrpc.SwapFees, amount uint64) uint64
- func CheckVersion(name string, version string, minVersion string) error
- func ExpandDefaultPath(dataDir string, currentValue string, defaultFileName string) string
- func ExpandHomeDir(path string) string
- func FileExists(path string) bool
- func FormatJson(resp interface{}) (string, error)
- func FormatMilliSat(milliSat int64) string
- func GetDefaultDataDir() (string, error)
- func GetSwapMemo(from string) string
- func Satoshis[V constraints.Integer](sat V) string
- func StripQuotes(text []byte) string
- type ChannelForwarder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateFeeEstimate ¶
func ExpandDefaultPath ¶
func ExpandHomeDir ¶
func FileExists ¶
func FormatJson ¶
func GetDefaultDataDir ¶
func GetSwapMemo ¶
func Satoshis ¶
func Satoshis[V constraints.Integer](sat V) string
func StripQuotes ¶
Types ¶
type ChannelForwarder ¶
type ChannelForwarder[T any] struct { // contains filtered or unexported fields }
func ForwardChannel ¶
func ForwardChannel[T any](orig chan T, buffer int, saveValues bool) *ChannelForwarder[T]
func (*ChannelForwarder[T]) Close ¶
func (c *ChannelForwarder[T]) Close()
func (*ChannelForwarder[T]) Get ¶
func (c *ChannelForwarder[T]) Get() <-chan T
func (*ChannelForwarder[T]) Remove ¶
func (c *ChannelForwarder[T]) Remove(recv <-chan T)
func (*ChannelForwarder[T]) Send ¶
func (c *ChannelForwarder[T]) Send(val T)
Click to show internal directories.
Click to hide internal directories.