Documentation ¶
Index ¶
- type NodeClient
- func (c *NodeClient) Call(method string, req base.ReqInterface, res base.ResInterface) error
- func (c *NodeClient) SetAlgorithm(algorithmType enum.App_AlgorithmType, pri string) error
- func (c *NodeClient) Sign(data string) (string, error)
- func (n *NodeClient) URL() string
- func (c *NodeClient) Verify(mac, data string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeClient ¶
type NodeClient struct {
// contains filtered or unexported fields
}
func NewNodeCli ¶
func NewNodeCli(url string, algorithmType enum.App_AlgorithmType, pri string) (*NodeClient, error)
func (*NodeClient) Call ¶
func (c *NodeClient) Call(method string, req base.ReqInterface, res base.ResInterface) error
func (*NodeClient) SetAlgorithm ¶
func (c *NodeClient) SetAlgorithm(algorithmType enum.App_AlgorithmType, pri string) error
func (*NodeClient) URL ¶
func (n *NodeClient) URL() string
func (*NodeClient) Verify ¶
func (c *NodeClient) Verify(mac, data string) bool
Click to show internal directories.
Click to hide internal directories.