requests

package
v0.0.0-...-2e0ef96 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddNode

func AddNode(conn net.Conn, nodeIn *data.NodeDB, netTimeout time.Duration) error

func AddUser

func AddUser(conn net.Conn, userIn *data.UserDB, netTimeout time.Duration) error

func Auth

func Auth(conn net.Conn, esamPubKey *data.ESAMPubKey, key *rsa.PrivateKey, noticesNotRequired bool, netTimeout time.Duration) error

func ChangePassword

func ChangePassword(conn net.Conn, password string, passwordHash string, passwordHashSign []byte, netTimeout time.Duration) error

func DelAccessReq

func DelAccessReq(conn net.Conn, esamPubKey *data.ESAMPubKey, netTimeout time.Duration) error

func DelNode

func DelNode(conn net.Conn, esamPubKey *data.ESAMPubKey, netTimeout time.Duration) error

func DelUser

func DelUser(conn net.Conn, esamPubKey *data.ESAMPubKey, netTimeout time.Duration) error

func FindInNodesCache

func FindInNodesCache(conn net.Conn, nodeFilterIn *data.NodeAuth, fullMatch bool, netTimeout time.Duration) ([]data.NodeAuth, error)

func GetAuthUserData

func GetAuthUserData(conn net.Conn, userOut *data.UserAuth, netTimeout time.Duration) error

func GetDirConnSettings

func GetDirConnSettings(conn net.Conn, dirConnSettingsOut *data.DirConnSettings, netTimeout time.Duration) error

func ListAccessReqs

func ListAccessReqs(conn net.Conn, accessReqFilterIn *data.AccessReqDB, netTimeout time.Duration) ([]data.AccessReqDB, error)

func ListNodes

func ListNodes(conn net.Conn, nodeFilterIn *data.Node, netTimeout time.Duration) ([]data.NodeDB, error)

func ListUsers

func ListUsers(conn net.Conn, userFilterIn *data.User, netTimeout time.Duration) ([]data.UserDB, error)

func PassKeyPassword

func PassKeyPassword(conn net.Conn, password string, netTimeout time.Duration) error

func SendAccessReq

func SendAccessReq(conn net.Conn, accessReqIn *data.AccessReq, secret string, netTimeout time.Duration) error

func UpdateNode

func UpdateNode(conn net.Conn, esamPubKey *data.ESAMPubKey, nodeIn *data.NodeDB, netTimeout time.Duration) error

func UpdateUser

func UpdateUser(conn net.Conn, esamPubKey *data.ESAMPubKey, userIn *data.UserDB, netTimeout time.Duration) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL