Documentation ¶
Index ¶
- Variables
- type Client
- func (*Client) GetName() string
- func (modInst *Client) HCSend(msgType string, channel bool, to string, signKey bc.PubKey, destKey bc.PubKey, ...) error
- func (modInst *Client) HandleMsg(msg api.Msg) error
- func (modInst *Client) NewJoinChanMsg(channelName string, channelPubKey bc.PubKey, password string) error
- func (modInst *Client) NewJoinChanRespMsg(channelName string, channelPrivKeyB64 string, userName string, ...) error
- func (modInst *Client) NewListChansMsg() error
- func (modInst *Client) NewNewChanMsg(chanName string, chanPubKey string) error
- func (modInst *Client) NewRegisterMsg() error
- func (modInst *Client) NewUnregisterMsg() error
- type JSONResp
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // HUSHCOM - Destination name for the Hushcom Server HUSHCOM = "HushComServer" // HUSHCOMPKA - ASCII base64 version of Server PubKey HUSHCOMPKA = "EuUE0KI4cySH/BkLSHlr7iBAaYikdYAC6M0GhxMk3Ew=" // HUSHCOMPK - binary version of Server PubKey HUSHCOMPK bc.PubKey )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Node api.Node CurrentProfileName string CurrentProfilePubKey bc.PubKey // Output - Buffered AJAX Output Output string // contains filtered or unexported fields }
Client - Hushcom Client
func (*Client) HCSend ¶
func (modInst *Client) HCSend( msgType string, channel bool, to string, signKey bc.PubKey, destKey bc.PubKey, hcmsg interface{}) error
HCSend - Send message via this client instance
func (*Client) NewJoinChanMsg ¶
func (modInst *Client) NewJoinChanMsg(channelName string, channelPubKey bc.PubKey, password string) error
NewJoinChanMsg - Create a join channel request
func (*Client) NewJoinChanRespMsg ¶
func (modInst *Client) NewJoinChanRespMsg(channelName string, channelPrivKeyB64 string, userName string, destKey bc.PubKey) error
NewJoinChanRespMsg - Create a join channel response
func (*Client) NewListChansMsg ¶
NewListChansMsg - Create a "List Public Channels" message for the Hushcom server
func (*Client) NewNewChanMsg ¶
NewNewChanMsg - Create a "register a new channel" message for the Hushcom server
func (*Client) NewRegisterMsg ¶
NewRegisterMsg - Create a "register a user" message for the Hushcom server
func (*Client) NewUnregisterMsg ¶
NewUnregisterMsg - Create an "Unregister a user" message for the Hushcom server
Click to show internal directories.
Click to hide internal directories.