Documentation ¶
Index ¶
- Constants
- func ParseMsgType(bytes []byte) uint16
- type CommandoMsg
- type LNSocket
- func (ln *LNSocket) Connect(hostname string, pubkey string) error
- func (ln *LNSocket) ConnectAndInit(hostname string, pubkey string) error
- func (ln *LNSocket) ConnectWith(netAddr *lnwire.NetAddress) error
- func (ln *LNSocket) Disconnect()
- func (ln *LNSocket) GenKey()
- func (ln *LNSocket) PerformInit() error
- func (ln *LNSocket) Recv() (uint16, []byte, error)
- func (ln *LNSocket) Rpc(token string, method string, params string) (string, error)
Constants ¶
View Source
const ( COMMANDO_CMD = 0x4c4f COMMANDO_REPLY_CONTINUES = 0x594b COMMANDO_REPLY_TERM = 0x594d )
Variables ¶
This section is empty.
Functions ¶
func ParseMsgType ¶
Types ¶
type CommandoMsg ¶
func NewCommandoMsg ¶
func NewCommandoMsg(token string, method string, params string) CommandoMsg
func (*CommandoMsg) MsgType ¶
func (msg *CommandoMsg) MsgType() lnwire.MessageType
type LNSocket ¶
type LNSocket struct { Conn net.Conn PrivKeyECDH *keychain.PrivKeyECDH }
func (*LNSocket) ConnectAndInit ¶
func (*LNSocket) ConnectWith ¶
func (ln *LNSocket) ConnectWith(netAddr *lnwire.NetAddress) error
func (*LNSocket) Disconnect ¶
func (ln *LNSocket) Disconnect()
func (*LNSocket) PerformInit ¶
Click to show internal directories.
Click to hide internal directories.