Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IBuilder ¶
type IBuilder interface { SetPrivKey(asymmetric.IPrivKey, asymmetric.IPubKey) *pkg_settings.SPrivKey Request(string, request.IRequest) *pkg_settings.SRequest Friend(string, asymmetric.IPubKey) *pkg_settings.SFriend Message(message.IMessage) string }
func NewBuilder ¶
func NewBuilder() IBuilder
type IClient ¶
type IClient interface { GetIndex() (string, error) GetSettings() (config.IConfigSettings, error) GetNetworkKey() (string, error) SetNetworkKey(string) error GetPubKey() (asymmetric.IPubKey, asymmetric.IPubKey, error) SetPrivKey(asymmetric.IPrivKey, asymmetric.IPubKey) error GetOnlines() ([]string, error) DelOnline(string) error GetFriends() (map[string]asymmetric.IPubKey, error) AddFriend(string, asymmetric.IPubKey) error DelFriend(string) error GetConnections() ([]string, error) AddConnection(string) error DelConnection(string) error HandleMessage(message.IMessage) error BroadcastRequest(string, request.IRequest) error FetchRequest(string, request.IRequest) (response.IResponse, error) }
func NewClient ¶
func NewClient(pBuilder IBuilder, pRequester IRequester) IClient
type IRequester ¶
type IRequester interface { GetIndex() (string, error) GetSettings() (config.IConfigSettings, error) GetNetworkKey() (string, error) SetNetworkKey(string) error GetPubKey() (asymmetric.IPubKey, asymmetric.IPubKey, error) SetPrivKey(*pkg_settings.SPrivKey) error GetOnlines() ([]string, error) DelOnline(string) error GetFriends() (map[string]asymmetric.IPubKey, error) AddFriend(*pkg_settings.SFriend) error DelFriend(*pkg_settings.SFriend) error GetConnections() ([]string, error) AddConnection(string) error DelConnection(string) error HandleMessage(string) error BroadcastRequest(*pkg_settings.SRequest) error FetchRequest(*pkg_settings.SRequest) (response.IResponse, error) }
func NewRequester ¶
func NewRequester(pHost string, pClient *http.Client) IRequester
Click to show internal directories.
Click to hide internal directories.