mirror of
https://github.com/go-i2p/go-i2pcontrol.git
synced 2025-07-13 18:34:08 -04:00
let's see if this ill-advised homebrew works
This commit is contained in:
@ -5,12 +5,12 @@ Hash: SHA256
|
|||||||
An easy-to-use library for the i2pcontrol rpc interface.
|
An easy-to-use library for the i2pcontrol rpc interface.
|
||||||
-----BEGIN PGP SIGNATURE-----
|
-----BEGIN PGP SIGNATURE-----
|
||||||
|
|
||||||
iQEzBAEBCAAdFiEEcNIGBzi++AUjrK/311wDs5teFOEFAlrDCswACgkQ11wDs5te
|
iQEzBAEBCAAdFiEEcNIGBzi++AUjrK/311wDs5teFOEFAlrDC/sACgkQ11wDs5te
|
||||||
FOFtbwf/UpoNUqvLZKJtMadIhtPdKaE+/s8MrMYBTeuflilmtgg/7zgoLh7CTUKg
|
FOEboQf+L7fxtRkSP1OmYxk/aSx2JVc4Cdnp1ohsSdyRqfCNOQsUszA0TqxmivRE
|
||||||
MpcZ5vMInR9W13Ce2YB6p8b3Xgs6HTAqb+7aVoTlbWHbCzrC8WMavuKC80KH/PHQ
|
qtxYs5Oy6ibO2eQpJpEIj2qNv2fjzzlIdt5gSn9Ai0WSpVhLuQSV34Iip/Z5JEvV
|
||||||
cZ+VuRizwSb5SjHwXAskLTfs51/mBebP/x5teOWqo/Gl9G3snokQ1bA8moI4cAxq
|
lvLCFgd0rVB1ejbSrHmpH9wAKHwE4ZtNwlGwGj/lkW5Jy2qg52rW99z/YvExfGU2
|
||||||
QFFbjy98/tdQK2PeVGp5X43U/583QzWmBPWFnMCfWDblz1YNn0ay2B8AMJ3Kjs+N
|
i37JtEdbC7t9rjCGbXkEdwqbuLeZV2EDHdR4/SCH0YdmWI5f9cS+x1czLuzuDx9F
|
||||||
UyNmpoQw/mXt25BK4qThRsPmRhe3s3W9yfIsI+HvSxsryo+fJRkRjpA+bcRDfSfp
|
LDJ1uJMnQS1epCJmijjmf2YnUEfO3JmfAHH3/8gS1Yyb2+220tsdtQmZZARJGLzS
|
||||||
fKW+8v45oWqTJGSibUFg5JvI6Bw75g==
|
/I8utF7ASFKB+Kw42k/G7Aqqr5bNcA==
|
||||||
=+QTs
|
=NRRg
|
||||||
-----END PGP SIGNATURE-----
|
-----END PGP SIGNATURE-----
|
||||||
|
6
auth.go
6
auth.go
@ -1,5 +1,7 @@
|
|||||||
package i2pcontrol
|
package i2pcontrol
|
||||||
|
|
||||||
|
import fmt
|
||||||
|
|
||||||
type i2pControlStructure struct {
|
type i2pControlStructure struct {
|
||||||
jsonstructure *jsonStructure
|
jsonstructure *jsonStructure
|
||||||
i2pcontrolhost string
|
i2pcontrolhost string
|
||||||
@ -14,6 +16,10 @@ func (i *i2pControlStructure) i2pControlPort() string{
|
|||||||
return i.i2pcontrolport
|
return i.i2pcontrolport
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (i *i2pControlStructure) Echo(s string) i2pControlStructure {
|
||||||
|
fmt.Println(i.jsonstructure.Echo("echo", ""))
|
||||||
|
}
|
||||||
|
|
||||||
func (i *i2pControlStructure) i2pControl() i2pControlStructure {
|
func (i *i2pControlStructure) i2pControl() i2pControlStructure {
|
||||||
return *i
|
return *i
|
||||||
}
|
}
|
||||||
|
@ -15,5 +15,5 @@ func main(){
|
|||||||
i2pcontrolhost := *AddrString
|
i2pcontrolhost := *AddrString
|
||||||
i2pcontrolport := *PortString
|
i2pcontrolport := *PortString
|
||||||
auth := i2pcontrol.NewI2pControl(i2pcontrolhost, i2pcontrolport)
|
auth := i2pcontrol.NewI2pControl(i2pcontrolhost, i2pcontrolport)
|
||||||
auth.Echo()
|
auth.Echo("test")
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user