Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/KOSASIH/skybridge
/ functions
Functions
267 in github.com/KOSASIH/skybridge
⨍
Functions
267
◇
Types & classes
40
↓ 43 callers
Method
Error
Error implements the error interface
src/lib/errors/errors.go:28
↓ 25 callers
Method
Fatal
Fatal logs a message at the FATAL level and exits the program
src/lib/logging/logging.go:69
↓ 20 callers
Method
Close
()
src/db/db.go:28
↓ 17 callers
Method
Put
Put puts a value into the storage
src/blockchain/storage/storage.go:45
↓ 16 callers
Function
NewStorage
NewStorage returns a new storage system
src/blockchain/storage/storage.go:37
↓ 12 callers
Method
Info
Info logs a message at the INFO level
src/lib/logging/logging.go:54
↓ 9 callers
Function
NewDatabase
(url string)
src/db/db.go:17
↓ 7 callers
Function
NewConsensus
NewConsensus returns a new consensus algorithm
src/blockchain/consensus/consensus.go:94
↓ 7 callers
Method
Start
Start starts the consensus algorithm
src/blockchain/consensus/consensus.go:106
↓ 7 callers
Method
String
String returns a string representation of the node metadata
src/api/types/types.go:100
↓ 6 callers
Method
Get
Get gets a value from the storage
src/blockchain/storage/storage.go:53
↓ 6 callers
Method
Log
Log logs a message at the specified level
src/lib/logging/logging.go:38
↓ 6 callers
Function
NewError
NewError creates a new error instance
src/lib/errors/errors.go:16
↓ 6 callers
Function
NewHash
(key string)
src/crypto/hash/hash.go:14
↓ 6 callers
Function
NewNetwork
NewNetwork returns a new network
src/blockchain/network/network.go:74
↓ 5 callers
Function
NewSignature
(privateKey *rsa.PrivateKey)
src/crypto/signature/signature.go:16
↓ 5 callers
Method
authenticateRequest
authenticateRequest authenticates a request.
src/api/gateway/gateway.go:355
↓ 5 callers
Function
generateToken
()
src/api/gateway/gateway_test.go:113
↓ 4 callers
Method
AddGroundStation
AddGroundStation adds a ground station to the satellite
src/satellite/satellite.go:30
↓ 4 callers
Method
Exec
(query string, args ...interface{})
src/db/db.go:36
↓ 4 callers
Method
Get
(dest interface{}, query string, args ...interface{})
src/db/db.go:40
↓ 4 callers
Function
NewEncryption
(key string)
src/crypto/encryption/encryption.go:16
↓ 4 callers
Function
NewNode
NewNode creates a new node
src/api/node/node.go:31
↓ 4 callers
Function
NewNode
NewNode returns a new Node instance
src/node/node.go:18
↓ 4 callers
Method
ProposeBlock
ProposeBlock proposes a new block
src/blockchain/consensus/consensus.go:150
↓ 4 callers
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request)
src/api/node/node.go:193
↓ 3 callers
Method
AddNeighbor
AddNeighbor adds a neighbor to the node
src/node/node.go:26
↓ 3 callers
Method
CommunicateWithGroundStation
CommunicateWithGroundStation communicates with a ground station
src/satellite/satellite.go:50
↓ 3 callers
Method
CreateNode
(ctx context.Context, node *Node)
src/api/node/node.go:143
↓ 3 callers
Method
GetNode
(ctx context.Context, id string)
src/api/node/node.go:142
↓ 3 callers
Method
Hash
(data []byte)
src/crypto/hash/hash.go:21
↓ 3 callers
Method
HashBase64
(data []byte)
src/crypto/hash/hash.go:30
↓ 3 callers
Method
Insert
(table string, data map[string]interface{})
src/db/db.go:65
↓ 3 callers
Function
NewLogger
NewLogger creates a new logger instance
src/lib/logging/logging.go:30
↓ 3 callers
Method
Sign
(data []byte)
src/crypto/signature/signature.go:20
↓ 3 callers
Method
SignBase64
(data []byte)
src/crypto/signature/signature.go:29
↓ 3 callers
Method
StartOrbit
StartOrbit starts the satellite's orbit
src/satellite/satellite.go:71
↓ 2 callers
Method
AddTransceiver
AddTransceiver adds a transceiver to the satellite
src/satellite/satellite.go:40
↓ 2 callers
Method
Decrypt
(ciphertext []byte)
src/crypto/encryption/encryption.go:40
↓ 2 callers
Method
DecryptBase64
(ciphertext string)
src/crypto/encryption/encryption.go:67
↓ 2 callers
Method
Dial
Dial dials a peer
src/blockchain/network/network.go:142
↓ 2 callers
Method
Encrypt
(plaintext []byte)
src/crypto/encryption/encryption.go:23
↓ 2 callers
Method
EncryptBase64
(plaintext string)
src/crypto/encryption/encryption.go:58
↓ 2 callers
Method
ErrorCode
ErrorCode returns the error code
src/lib/errors/errors.go:33
↓ 2 callers
Method
ErrorDetails
ErrorDetails returns the error details
src/lib/errors/errors.go:43
↓ 2 callers
Method
ErrorMessage
ErrorMessage returns the error message
src/lib/errors/errors.go:38
↓ 2 callers
Method
GetNeighbors
GetNeighbors returns the node's neighbors
src/node/node.go:31
↓ 2 callers
Function
IsEmpty
IsEmpty checks if a string, slice, or map is empty
src/lib/utils/utils.go:66
↓ 2 callers
Function
IsNil
IsNil checks if a value is nil
src/lib/utils/utils.go:61
↓ 2 callers
Method
IsValid
IsValid checks if the current block is valid
src/blockchain/consensus/consensus.go:191
↓ 2 callers
Method
Load
Load loads the storage from disk
src/blockchain/storage/storage.go:114
↓ 2 callers
Function
NewGroundStation
NewGroundStation returns a new GroundStation instance
src/satellite/satellite.go:88
↓ 2 callers
Function
NewTransceiver
NewTransceiver returns a new Transceiver instance
src/satellite/satellite.go:106
↓ 2 callers
Method
Persist
Persist persists the storage to disk
src/blockchain/storage/storage.go:99
↓ 2 callers
Method
Query
(query string, args ...interface{})
src/db/db.go:32
↓ 2 callers
Method
Round
Round is the main loop of the consensus algorithm
src/blockchain/consensus/consensus.go:121
↓ 2 callers
Method
Start
Start starts the network
src/blockchain/network/network.go:82
↓ 2 callers
Function
TimeNow
TimeNow returns the current time
src/lib/utils/utils.go:96
↓ 2 callers
Method
Verify
(data []byte, hash []byte)
src/crypto/hash/hash.go:38
↓ 2 callers
Method
Verify
(data []byte, signature []byte)
src/crypto/signature/signature.go:37
↓ 2 callers
Method
VerifyBase64
(data []byte, hash string)
src/crypto/hash/hash.go:48
↓ 2 callers
Method
VerifyBase64
(data []byte, signature string)
src/crypto/signature/signature.go:43
↓ 2 callers
Method
Vote
Vote votes on the current block
src/blockchain/consensus/consensus.go:175
↓ 2 callers
Method
is_connection_healthy
(self, connection_type)
connection/connection_manager.py:35
↓ 1 callers
Method
AddBlock
AddBlock adds the current block to the blockchain
src/blockchain/consensus/consensus.go:208
↓ 1 callers
Function
Arch
Arch returns the current architecture
src/lib/utils/utils.go:122
↓ 1 callers
Method
CommunicateWithMultipleGroundStations
CommunicateWithMultipleGroundStations communicates with multiple ground stations concurrently
src/satellite/satellite.go:56
↓ 1 callers
Method
CreateNode
(ctx context.Context, node *Node)
src/api/node/node.go:172
↓ 1 callers
Method
Debug
Debug logs a message at the DEBUG level
src/lib/logging/logging.go:49
↓ 1 callers
Method
Delete
Delete deletes a value from the storage
src/blockchain/storage/storage.go:64
↓ 1 callers
Method
Delete
(table string, where string, args ...interface{})
src/db/db.go:96
↓ 1 callers
Method
DeleteNode
(ctx context.Context, id string)
src/api/node/node.go:186
↓ 1 callers
Method
Deploy
Deploy deploys both the satellite and node configurations
tools/deploy/deploy.go:105
↓ 1 callers
Method
DeployNodeConfig
DeployNodeConfig deploys the node configuration
tools/deploy/deploy.go:71
↓ 1 callers
Method
DeploySatelliteConfig
DeploySatelliteConfig deploys the satellite configuration
tools/deploy/deploy.go:29
↓ 1 callers
Method
Error
Error logs a message at the ERROR level
src/lib/logging/logging.go:64
↓ 1 callers
Function
FilePathJoin
FilePathJoin joins file paths
src/lib/utils/utils.go:56
↓ 1 callers
Function
GenerateTLS
GenerateTLS generates a TLS certificate and private key
src/blockchain/network/network.go:185
↓ 1 callers
Method
Get
Get performs a GET request to the specified URL
src/network/network.go:37
↓ 1 callers
Method
GetJSON
(dest interface{}, query string, args ...interface{})
src/db/db.go:56
↓ 1 callers
Method
GetNode
(ctx context.Context, id string)
src/api/node/node.go:162
↓ 1 callers
Function
HTTPGet
HTTPGet makes a GET request to a URL
src/lib/utils/utils.go:41
↓ 1 callers
Function
IsError
IsError checks if the error is of type Error
src/lib/errors/errors.go:48
↓ 1 callers
Function
JSONMarshal
JSONMarshal marshals a struct to JSON
src/lib/utils/utils.go:31
↓ 1 callers
Method
MarshalJSON
MarshalJSON marshals the network to JSON
src/blockchain/network/network.go:159
↓ 1 callers
Method
MarshalJSON
MarshalJSON marshals the consensus algorithm to JSON
src/blockchain/consensus/consensus.go:217
↓ 1 callers
Function
NewDeployer
NewDeployer returns a new Deployer instance
tools/deploy/deploy.go:21
↓ 1 callers
Function
NewGateway
NewGateway returns a new gateway instance.
src/api/gateway/gateway.go:90
↓ 1 callers
Function
NewNetwork
NewNetwork returns a new Network instance
src/network/network.go:21
↓ 1 callers
Function
NewNodeService
NewNodeService creates a new node service
src/api/node/node.go:149
↓ 1 callers
Function
NewSatellite
NewSatellite returns a new Satellite instance
src/satellite/satellite.go:21
↓ 1 callers
Function
NewTester
NewTester returns a new Tester instance
tools/test/test.go:19
↓ 1 callers
Function
OS
OS returns the current operating system
src/lib/utils/utils.go:117
↓ 1 callers
Function
RandInt
RandInt generates a random integer
src/lib/utils/utils.go:80
↓ 1 callers
Function
RandString
RandString generates a random string of a given length
src/lib/utils/utils.go:89
↓ 1 callers
Method
ReceiveData
ReceiveData receives data from the satellite
src/satellite/satellite.go:95
↓ 1 callers
Function
RegexpMatch
RegexpMatch checks if a string matches a regular expression
src/lib/utils/utils.go:111
↓ 1 callers
Method
Test
Test tests both the satellite and node configurations
tools/test/test.go:67
↓ 1 callers
Method
TestNodeConfig
TestNodeConfig tests the node configuration
tools/test/test.go:50
↓ 1 callers
Method
TestSatelliteConfig
TestSatelliteConfig tests the satellite configuration
tools/test/test.go:27
next →
1–100 of 267, ranked by callers