Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DenzelPenzel/shrek
/ functions
Functions
150 in github.com/DenzelPenzel/shrek
⨍
Functions
150
◇
Types & classes
39
↓ 32 callers
Method
Run
()
internal/server/server.go:117
↓ 27 callers
Method
Execute
(r *shrek.ExecuteRequest)
internal/server/server.go:84
↓ 19 callers
Method
Close
()
internal/shrek/raft_rpc.go:36
↓ 16 callers
Method
Close
()
internal/db/db.go:74
↓ 16 callers
Method
Join
Join ... Connects the node, identified by the provided ID and reachable at the specified address, to the current node
internal/server/server.go:90
↓ 14 callers
Method
Query
(query string, args []driver.Value)
internal/db/db.go:15
↓ 10 callers
Function
GetTCPAddr
(addr string)
internal/utils/utils.go:51
↓ 10 callers
Method
Open
(allowSingle bool)
internal/shrek/shrek.go:504
↓ 10 callers
Method
Shutdown
()
e2e/node.go:34
↓ 10 callers
Function
WithContext
WithContext ... Pass in a context containing values to add to each log message
internal/logging/logging.go:29
↓ 8 callers
Method
Remove
Remove ... Remove node from the cluster
internal/server/server.go:93
↓ 8 callers
Method
WaitForLeader
(timeout time.Duration)
internal/shrek/shrek.go:681
↓ 7 callers
Function
Join
Join ... Sequentially processes joinAddr, updating node ID (id) and Raft address (addr) for each joining node. It returns the successfully used endpoi
internal/server/server.go:193
↓ 7 callers
Method
Path
Path ... Returns the path to the store's storage directory
internal/shrek/shrek.go:744
↓ 7 callers
Method
Query
(r *shrek.QueryRequest)
internal/server/server.go:86
↓ 7 callers
Method
Shutdown
()
internal/shrek/shrek.go:646
↓ 7 callers
Function
createMockStore
()
internal/shrek/shrek_test.go:292
↓ 6 callers
Function
New
(ctx context.Context, cfg *config.ServerConfig, s Storage)
internal/server/server.go:105
↓ 5 callers
Function
NewNetwork
()
internal/network/network.go:12
↓ 5 callers
Function
RandomString
(n int)
internal/utils/utils.go:38
↓ 5 callers
Method
ShutDown
()
internal/server/server.go:169
↓ 5 callers
Method
WaitForLeader
()
e2e/node.go:52
↓ 5 callers
Function
openDB
(t *testing.T)
internal/db/db_test.go:182
↓ 4 callers
Function
CreateLeaderNode
()
e2e/node.go:242
↓ 4 callers
Function
Open
(path string)
internal/db/db.go:50
↓ 4 callers
Method
Open
(addr string)
internal/network/network.go:16
↓ 4 callers
Function
createMockConfig
()
internal/server/server_test.go:318
↓ 3 callers
Method
Addr
()
internal/server/server.go:174
↓ 3 callers
Method
Addr
Addr ... Returns the address of the store
internal/shrek/shrek.go:735
↓ 3 callers
Method
Apply
Apply ... Applies a Raft log entry to the database
internal/shrek/shrek.go:104
↓ 3 callers
Function
CreateNewNode
(enableSingle bool)
e2e/node.go:171
↓ 3 callers
Method
ID
ID ... Returns the raft ID
internal/shrek/shrek.go:730
↓ 3 callers
Method
Leader
()
e2e/cluster.go:22
↓ 3 callers
Method
LeaderAddr
()
internal/shrek/shrek.go:739
↓ 3 callers
Method
LeaderID
LeaderID ... Returns the raft leader
internal/server/server.go:96
↓ 3 callers
Function
New
New ... Initializer
internal/shrek/shrek.go:484
↓ 3 callers
Function
formatDSNWithFilePath
formatDSNWithFilePath ... Format file path with data source name
internal/db/db.go:325
↓ 3 callers
Function
open
(path string)
internal/db/db.go:62
↓ 2 callers
Method
Addr
()
internal/network/network.go:48
↓ 2 callers
Function
AllocatePorts
(count int)
internal/dyport/dyport.go:25
↓ 2 callers
Method
Backup
Backup ... consistent database snapshot
internal/db/db.go:160
↓ 2 callers
Method
Close
()
internal/network/network.go:44
↓ 2 callers
Method
Dial
Dial - makes outgoing connections to other servers in the Raft cluster When we connect to a server, we write the RaftRPC byte to identify the connecti
internal/shrek/raft_rpc.go:15
↓ 2 callers
Function
NewResponse
()
internal/server/server.go:52
↓ 2 callers
Function
NoContext
NoContext ... A log helper to log when there's no context. Rare case usage
internal/logging/logging.go:42
↓ 2 callers
Method
Stats
()
internal/server/server.go:80
↓ 2 callers
Function
TempDir
(name string)
internal/utils/utils.go:59
↓ 2 callers
Method
findNode
(addr string)
e2e/cluster.go:13
↓ 2 callers
Method
getAPIURL
(suffix string)
e2e/node.go:105
↓ 2 callers
Method
leaderID
()
internal/server/server.go:297
↓ 2 callers
Function
listener
(port int)
internal/dyport/dyport.go:68
↓ 2 callers
Method
postRequest
(u *url.URL, j string)
e2e/node.go:114
↓ 2 callers
Method
setMetadata
(id string, md map[string]string)
internal/shrek/shrek.go:253
↓ 1 callers
Method
Accept
Accept ... Awaiting the next incoming connection
internal/network/network.go:36
↓ 1 callers
Method
Addr
()
internal/shrek/shrek_test.go:278
↓ 1 callers
Method
Database
(leader bool)
internal/shrek/shrek.go:143
↓ 1 callers
Method
Dial
Dial ... Establishes a network connection
internal/network/network.go:26
↓ 1 callers
Method
End
End ... Returns a channel that will receive an OS signal
internal/app/app.go:149
↓ 1 callers
Method
Exec
(query string, args []driver.Value)
internal/db/db.go:19
↓ 1 callers
Method
GetMetadata
GetMetadata ... Returns metadata for specific node_id and for a given key
internal/server/server.go:102
↓ 1 callers
Method
JoinAllowed
JoinAllowed ... Returns whether the config files within raftDir indicate that the node can join a cluster
internal/shrek/peers.go:36
↓ 1 callers
Method
LeaderID
LeaderID ... Returns leader ID
internal/shrek/shrek.go:627
↓ 1 callers
Method
ListenForShutdown
ListenForShutdown ... Handles and listens for shutdown
internal/app/app.go:140
↓ 1 callers
Function
New
New ... A helper to create a logger based on environment
internal/logging/logging.go:47
↓ 1 callers
Function
New
New ... Initializer
internal/app/app.go:25
↓ 1 callers
Function
NewApp
(ctx context.Context, cfg *config.Config)
internal/app/app.go:125
↓ 1 callers
Function
NewConfig
NewConfig ... Initializer
internal/config/config.go:73
↓ 1 callers
Function
NewLocal
()
internal/logging/logging.go:60
↓ 1 callers
Function
NewRaftLayer
(ln Listener)
internal/shrek/raft_rpc.go:22
↓ 1 callers
Function
NumPeers
NumPeers ... Returns the number of peers indicated by the config files within raftDir This code makes assumptions about how the Raft module works
internal/shrek/peers.go:16
↓ 1 callers
Function
PathExists
(path string)
internal/utils/utils.go:11
↓ 1 callers
Method
RemoveNode
(n *Node)
e2e/cluster.go:72
↓ 1 callers
Method
SetMetadata
(md map[string]string)
internal/shrek/shrek.go:249
↓ 1 callers
Method
Status
()
e2e/node.go:82
↓ 1 callers
Method
WaitForApplied
(timeout time.Duration)
internal/shrek/shrek.go:718
↓ 1 callers
Method
WaitForAppliedIndex
(idx uint64, timeout time.Duration)
internal/shrek/shrek.go:700
↓ 1 callers
Method
WaitForNewLeader
(oldLeader *Node)
e2e/cluster.go:30
↓ 1 callers
Function
copyDatabase
(source *sqlite3.SQLiteConn, target *sqlite3.SQLiteConn)
internal/db/db.go:270
↓ 1 callers
Function
createMockLister
(addr string)
internal/shrek/shrek_test.go:282
↓ 1 callers
Method
getRaftConfig
getRaftConfig ... Return raft config file
internal/shrek/shrek.go:749
↓ 1 callers
Method
handleExecute
()
internal/server/handlers.go:14
↓ 1 callers
Method
handleJoin
()
internal/server/handlers.go:134
↓ 1 callers
Method
handleQuery
()
internal/server/handlers.go:53
↓ 1 callers
Method
handleRemove
()
internal/server/handlers.go:128
↓ 1 callers
Method
handleStats
()
internal/server/handlers.go:93
↓ 1 callers
Function
isTextType
isTextType returns whether the given type has a SQLite text affinity. http://www.sqlite.org/datatype3.html
internal/db/db.go:313
↓ 1 callers
Function
join
(joinAddr *url.URL, id string, addr *net.TCPAddr, meta map[string]string)
internal/server/server.go:224
↓ 1 callers
Function
joinRequest
(nodeAddr, raftID, raftAddr string)
e2e/node.go:146
↓ 1 callers
Method
leaderAPIAddr
()
internal/server/server.go:289
↓ 1 callers
Function
normalizeRowValues
(row []driver.Value, types []string)
internal/db/db.go:294
↓ 1 callers
Method
openDB
()
internal/shrek/shrek.go:603
↓ 1 callers
Method
sameAs
(o *Node)
e2e/node.go:48
↓ 1 callers
Function
setupHTTPServer
(ctx context.Context, cfg *config.Config, s *shrek.Shrek)
internal/app/app.go:120
↓ 1 callers
Function
setupStore
(ctx context.Context, cfg *config.Config)
internal/app/app.go:33
↓ 1 callers
Function
tempDir
()
internal/server/server_test.go:310
Method
Accept
()
internal/shrek/raft_rpc.go:32
Method
Accept
()
internal/shrek/shrek_test.go:270
Method
Addr
()
internal/shrek/raft_rpc.go:40
Method
Close
()
internal/shrek/shrek_test.go:274
Method
DeregisterObserver
(o *raft.Observer)
internal/shrek/shrek.go:677
next →
1–100 of 150, ranked by callers