Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶
func NewClient(id, host, port string, pubKey []byte, prvKey []byte, pkiDir string, provider config.MixConfig) (*client, error)
The constructor function to create an new client object. Function returns a new client object or an error, if occurred.
func NewTestClient ¶
func NewTestClient(id, host, port string, pubKey []byte, prvKey []byte, pkiDir string, provider config.MixConfig) (*client, error)
NewTestClient constructs a client object, which can be used for testing. The object contains the crypto core and the top-level of client, but does not involve networking and starting a listener.
Types ¶
type Client ¶
type Client interface {
networker.NetworkClient
networker.NetworkServer
Start() error
SendMessage(message string, recipient config.ClientConfig) error
ReadInNetworkFromPKI(pkiName string) error
}
Click to show internal directories.
Click to hide internal directories.