Documentation ¶
Index ¶
- Constants
- func AddModelUpdateEdge(blockID string, graph Graph) (bool, error)
- func GetClientID(pubkey string, modelID string) (uint32, error)
- func GetClientPubkey(id int, modelID string) (string, error)
- func GetClients(modelID string) ([]string, error)
- func GetModelUpdate(blockID string) (mupb.ModelUpdate, error)
- func GetModelUpdates(modelID string) ([]*mupb.ModelUpdate, error)
- func GetModelUpdatesBlockIDs(modelID string) ([]string, error)
- func RetrieveModelUpdate(modelID string, blockID string) (*mupb.ModelUpdate, error)
- func RunLiveFeed(wg *sync.WaitGroup)
- func SaveModelUpdate(blockID string, modelUpdate mupb.ModelUpdate) error
- func SendModelUpdate(mupdate mupb.ModelUpdate) (string, error)
- func StoreClientID(id uint32, pubkey string, modelID string) error
- type Block
- type Data
- type GHResponse
- type Graph
- type Model
- type Node
- type Peer
- type Peers
- type Response
Constants ¶
View Source
const ( LEVELDB_ENDPOINT = "./../ldb" INF = 1e6 )
View Source
const ( MODEL_UPDATE_PYTHON_PURPOSE_ID = 16 MODEL_UPDATE_GOLANG_PURPOSE_ID = 17 )
Variables ¶
This section is empty.
Functions ¶
func GetClients ¶
func GetModelUpdate ¶
func GetModelUpdate(blockID string) (mupb.ModelUpdate, error)
func GetModelUpdates ¶
func GetModelUpdates(modelID string) ([]*mupb.ModelUpdate, error)
func GetModelUpdatesBlockIDs ¶
func RetrieveModelUpdate ¶
func RetrieveModelUpdate(modelID string, blockID string) (*mupb.ModelUpdate, error)
func RunLiveFeed ¶
func SaveModelUpdate ¶
func SaveModelUpdate(blockID string, modelUpdate mupb.ModelUpdate) error
func SendModelUpdate ¶
func SendModelUpdate(mupdate mupb.ModelUpdate) (string, error)
Types ¶
type GHResponse ¶
type Graph ¶
func RetrieveDAGSnapshot ¶
func (*Graph) SaveDAGSnapshot ¶
func (*Graph) TopologicalSort ¶
Click to show internal directories.
Click to hide internal directories.