Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCertificatePaths ¶
Types ¶
type Grapevine ¶
type Grapevine interface { Start(ip net.IP) (int, error) Serve(s shareddata.SharedData) shareddata.SharedData Invite(s shareddata.SharedData, recipient common.Contact, as string) bool Search(key string) shareddata.SearchId GetMe() common.Contact GetMongers() []common.Address CreateAccount(username string, password string) error Login(username string, password string, ip net.IP, port int) (common.AccountId, error) }
func NewGrapevine ¶
func NewGrapevine(cb shareddata.ClientCallback, ctx common.CallCtx) Grapevine
type GrapevineListener ¶
type GrapevineListener interface { Listen(net.IP) (int, error) GetMe() common.Contact GetIp() net.IP GetPort() int SetGossip(gossip gossip.Gossip) SetClientCache(clientCache client.GrapevineClientCache) SetAccountId(accountId common.AccountId) }
func NewGrapevineListener ¶
func NewGrapevineListener(ctx common.CallCtx, onSearchCb func(searchId shareddata.SearchId, query string) bool, onSearchResultCb func(searchId shareddata.SearchId, response string, accountId common.AccountId, ip string, port int), ) GrapevineListener
Click to show internal directories.
Click to hide internal directories.