MCPcopy Create free account

hub / github.com/KOSASIH/skybridge / functions

Functions267 in github.com/KOSASIH/skybridge

↓ 43 callersMethodError
Error implements the error interface
src/lib/errors/errors.go:28
↓ 25 callersMethodFatal
Fatal logs a message at the FATAL level and exits the program
src/lib/logging/logging.go:69
↓ 20 callersMethodClose
()
src/db/db.go:28
↓ 17 callersMethodPut
Put puts a value into the storage
src/blockchain/storage/storage.go:45
↓ 16 callersFunctionNewStorage
NewStorage returns a new storage system
src/blockchain/storage/storage.go:37
↓ 12 callersMethodInfo
Info logs a message at the INFO level
src/lib/logging/logging.go:54
↓ 9 callersFunctionNewDatabase
(url string)
src/db/db.go:17
↓ 7 callersFunctionNewConsensus
NewConsensus returns a new consensus algorithm
src/blockchain/consensus/consensus.go:94
↓ 7 callersMethodStart
Start starts the consensus algorithm
src/blockchain/consensus/consensus.go:106
↓ 7 callersMethodString
String returns a string representation of the node metadata
src/api/types/types.go:100
↓ 6 callersMethodGet
Get gets a value from the storage
src/blockchain/storage/storage.go:53
↓ 6 callersMethodLog
Log logs a message at the specified level
src/lib/logging/logging.go:38
↓ 6 callersFunctionNewError
NewError creates a new error instance
src/lib/errors/errors.go:16
↓ 6 callersFunctionNewHash
(key string)
src/crypto/hash/hash.go:14
↓ 6 callersFunctionNewNetwork
NewNetwork returns a new network
src/blockchain/network/network.go:74
↓ 5 callersFunctionNewSignature
(privateKey *rsa.PrivateKey)
src/crypto/signature/signature.go:16
↓ 5 callersMethodauthenticateRequest
authenticateRequest authenticates a request.
src/api/gateway/gateway.go:355
↓ 5 callersFunctiongenerateToken
()
src/api/gateway/gateway_test.go:113
↓ 4 callersMethodAddGroundStation
AddGroundStation adds a ground station to the satellite
src/satellite/satellite.go:30
↓ 4 callersMethodExec
(query string, args ...interface{})
src/db/db.go:36
↓ 4 callersMethodGet
(dest interface{}, query string, args ...interface{})
src/db/db.go:40
↓ 4 callersFunctionNewEncryption
(key string)
src/crypto/encryption/encryption.go:16
↓ 4 callersFunctionNewNode
NewNode creates a new node
src/api/node/node.go:31
↓ 4 callersFunctionNewNode
NewNode returns a new Node instance
src/node/node.go:18
↓ 4 callersMethodProposeBlock
ProposeBlock proposes a new block
src/blockchain/consensus/consensus.go:150
↓ 4 callersMethodServeHTTP
(w http.ResponseWriter, r *http.Request)
src/api/node/node.go:193
↓ 3 callersMethodAddNeighbor
AddNeighbor adds a neighbor to the node
src/node/node.go:26
↓ 3 callersMethodCommunicateWithGroundStation
CommunicateWithGroundStation communicates with a ground station
src/satellite/satellite.go:50
↓ 3 callersMethodCreateNode
(ctx context.Context, node *Node)
src/api/node/node.go:143
↓ 3 callersMethodGetNode
(ctx context.Context, id string)
src/api/node/node.go:142
↓ 3 callersMethodHash
(data []byte)
src/crypto/hash/hash.go:21
↓ 3 callersMethodHashBase64
(data []byte)
src/crypto/hash/hash.go:30
↓ 3 callersMethodInsert
(table string, data map[string]interface{})
src/db/db.go:65
↓ 3 callersFunctionNewLogger
NewLogger creates a new logger instance
src/lib/logging/logging.go:30
↓ 3 callersMethodSign
(data []byte)
src/crypto/signature/signature.go:20
↓ 3 callersMethodSignBase64
(data []byte)
src/crypto/signature/signature.go:29
↓ 3 callersMethodStartOrbit
StartOrbit starts the satellite's orbit
src/satellite/satellite.go:71
↓ 2 callersMethodAddTransceiver
AddTransceiver adds a transceiver to the satellite
src/satellite/satellite.go:40
↓ 2 callersMethodDecrypt
(ciphertext []byte)
src/crypto/encryption/encryption.go:40
↓ 2 callersMethodDecryptBase64
(ciphertext string)
src/crypto/encryption/encryption.go:67
↓ 2 callersMethodDial
Dial dials a peer
src/blockchain/network/network.go:142
↓ 2 callersMethodEncrypt
(plaintext []byte)
src/crypto/encryption/encryption.go:23
↓ 2 callersMethodEncryptBase64
(plaintext string)
src/crypto/encryption/encryption.go:58
↓ 2 callersMethodErrorCode
ErrorCode returns the error code
src/lib/errors/errors.go:33
↓ 2 callersMethodErrorDetails
ErrorDetails returns the error details
src/lib/errors/errors.go:43
↓ 2 callersMethodErrorMessage
ErrorMessage returns the error message
src/lib/errors/errors.go:38
↓ 2 callersMethodGetNeighbors
GetNeighbors returns the node's neighbors
src/node/node.go:31
↓ 2 callersFunctionIsEmpty
IsEmpty checks if a string, slice, or map is empty
src/lib/utils/utils.go:66
↓ 2 callersFunctionIsNil
IsNil checks if a value is nil
src/lib/utils/utils.go:61
↓ 2 callersMethodIsValid
IsValid checks if the current block is valid
src/blockchain/consensus/consensus.go:191
↓ 2 callersMethodLoad
Load loads the storage from disk
src/blockchain/storage/storage.go:114
↓ 2 callersFunctionNewGroundStation
NewGroundStation returns a new GroundStation instance
src/satellite/satellite.go:88
↓ 2 callersFunctionNewTransceiver
NewTransceiver returns a new Transceiver instance
src/satellite/satellite.go:106
↓ 2 callersMethodPersist
Persist persists the storage to disk
src/blockchain/storage/storage.go:99
↓ 2 callersMethodQuery
(query string, args ...interface{})
src/db/db.go:32
↓ 2 callersMethodRound
Round is the main loop of the consensus algorithm
src/blockchain/consensus/consensus.go:121
↓ 2 callersMethodStart
Start starts the network
src/blockchain/network/network.go:82
↓ 2 callersFunctionTimeNow
TimeNow returns the current time
src/lib/utils/utils.go:96
↓ 2 callersMethodVerify
(data []byte, hash []byte)
src/crypto/hash/hash.go:38
↓ 2 callersMethodVerify
(data []byte, signature []byte)
src/crypto/signature/signature.go:37
↓ 2 callersMethodVerifyBase64
(data []byte, hash string)
src/crypto/hash/hash.go:48
↓ 2 callersMethodVerifyBase64
(data []byte, signature string)
src/crypto/signature/signature.go:43
↓ 2 callersMethodVote
Vote votes on the current block
src/blockchain/consensus/consensus.go:175
↓ 2 callersMethodis_connection_healthy
(self, connection_type)
connection/connection_manager.py:35
↓ 1 callersMethodAddBlock
AddBlock adds the current block to the blockchain
src/blockchain/consensus/consensus.go:208
↓ 1 callersFunctionArch
Arch returns the current architecture
src/lib/utils/utils.go:122
↓ 1 callersMethodCommunicateWithMultipleGroundStations
CommunicateWithMultipleGroundStations communicates with multiple ground stations concurrently
src/satellite/satellite.go:56
↓ 1 callersMethodCreateNode
(ctx context.Context, node *Node)
src/api/node/node.go:172
↓ 1 callersMethodDebug
Debug logs a message at the DEBUG level
src/lib/logging/logging.go:49
↓ 1 callersMethodDelete
Delete deletes a value from the storage
src/blockchain/storage/storage.go:64
↓ 1 callersMethodDelete
(table string, where string, args ...interface{})
src/db/db.go:96
↓ 1 callersMethodDeleteNode
(ctx context.Context, id string)
src/api/node/node.go:186
↓ 1 callersMethodDeploy
Deploy deploys both the satellite and node configurations
tools/deploy/deploy.go:105
↓ 1 callersMethodDeployNodeConfig
DeployNodeConfig deploys the node configuration
tools/deploy/deploy.go:71
↓ 1 callersMethodDeploySatelliteConfig
DeploySatelliteConfig deploys the satellite configuration
tools/deploy/deploy.go:29
↓ 1 callersMethodError
Error logs a message at the ERROR level
src/lib/logging/logging.go:64
↓ 1 callersFunctionFilePathJoin
FilePathJoin joins file paths
src/lib/utils/utils.go:56
↓ 1 callersFunctionGenerateTLS
GenerateTLS generates a TLS certificate and private key
src/blockchain/network/network.go:185
↓ 1 callersMethodGet
Get performs a GET request to the specified URL
src/network/network.go:37
↓ 1 callersMethodGetJSON
(dest interface{}, query string, args ...interface{})
src/db/db.go:56
↓ 1 callersMethodGetNode
(ctx context.Context, id string)
src/api/node/node.go:162
↓ 1 callersFunctionHTTPGet
HTTPGet makes a GET request to a URL
src/lib/utils/utils.go:41
↓ 1 callersFunctionIsError
IsError checks if the error is of type Error
src/lib/errors/errors.go:48
↓ 1 callersFunctionJSONMarshal
JSONMarshal marshals a struct to JSON
src/lib/utils/utils.go:31
↓ 1 callersMethodMarshalJSON
MarshalJSON marshals the network to JSON
src/blockchain/network/network.go:159
↓ 1 callersMethodMarshalJSON
MarshalJSON marshals the consensus algorithm to JSON
src/blockchain/consensus/consensus.go:217
↓ 1 callersFunctionNewDeployer
NewDeployer returns a new Deployer instance
tools/deploy/deploy.go:21
↓ 1 callersFunctionNewGateway
NewGateway returns a new gateway instance.
src/api/gateway/gateway.go:90
↓ 1 callersFunctionNewNetwork
NewNetwork returns a new Network instance
src/network/network.go:21
↓ 1 callersFunctionNewNodeService
NewNodeService creates a new node service
src/api/node/node.go:149
↓ 1 callersFunctionNewSatellite
NewSatellite returns a new Satellite instance
src/satellite/satellite.go:21
↓ 1 callersFunctionNewTester
NewTester returns a new Tester instance
tools/test/test.go:19
↓ 1 callersFunctionOS
OS returns the current operating system
src/lib/utils/utils.go:117
↓ 1 callersFunctionRandInt
RandInt generates a random integer
src/lib/utils/utils.go:80
↓ 1 callersFunctionRandString
RandString generates a random string of a given length
src/lib/utils/utils.go:89
↓ 1 callersMethodReceiveData
ReceiveData receives data from the satellite
src/satellite/satellite.go:95
↓ 1 callersFunctionRegexpMatch
RegexpMatch checks if a string matches a regular expression
src/lib/utils/utils.go:111
↓ 1 callersMethodTest
Test tests both the satellite and node configurations
tools/test/test.go:67
↓ 1 callersMethodTestNodeConfig
TestNodeConfig tests the node configuration
tools/test/test.go:50
↓ 1 callersMethodTestSatelliteConfig
TestSatelliteConfig tests the satellite configuration
tools/test/test.go:27
next →1–100 of 267, ranked by callers