Documentation ¶
Index ¶
Constants ¶
View Source
const (
I2P_USER_AGENT = "Wget/1.11.4"
)
Variables ¶
This section is empty.
Functions ¶
func NewTLSCertificate ¶
func NewTLSCertificate(host string, priv *ecdsa.PrivateKey) ([]byte, error)
func NewTLSCertificate(host string, priv *rsa.PrivateKey) ([]byte, error) {
func SignerFilename ¶
Types ¶
type Blacklist ¶
type Blacklist struct {
// contains filtered or unexported fields
}
func NewBlacklist ¶
func NewBlacklist() *Blacklist
type KeyStore ¶
type KeyStore struct {
Path string
}
func (*KeyStore) ReseederCertificate ¶
func (ks *KeyStore) ReseederCertificate(signer []byte) (*x509.Certificate, error)
type LocalNetDbImpl ¶
type LocalNetDbImpl struct {
Path string
}
func NewLocalNetDb ¶
func NewLocalNetDb(path string) *LocalNetDbImpl
func (*LocalNetDbImpl) RouterInfos ¶
func (db *LocalNetDbImpl) RouterInfos() (routerInfos []routerInfo, err error)
type NetDbProvider ¶
type NetDbProvider interface { // Get all router infos RouterInfos() ([]routerInfo, error) }
type ReseederImpl ¶
type ReseederImpl struct { SigningKey *rsa.PrivateKey SignerId []byte NumRi int RebuildInterval time.Duration NumSu3 int // contains filtered or unexported fields }
func NewReseeder ¶
func NewReseeder(netdb NetDbProvider) *ReseederImpl
func (*ReseederImpl) PeerSu3Bytes ¶
func (rs *ReseederImpl) PeerSu3Bytes(peer Peer) ([]byte, error)
func (*ReseederImpl) Start ¶
func (rs *ReseederImpl) Start() chan bool
Click to show internal directories.
Click to hide internal directories.