Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anthdm/raptor
/ functions
Functions
176 in github.com/anthdm/raptor
⨍
Functions
176
◇
Types & classes
45
↓ 29 callers
Function
writeJSON
(w http.ResponseWriter, status int, v any)
internal/api/handler.go:35
↓ 23 callers
Function
ErrorResponse
(err error)
internal/api/handler.go:18
↓ 23 callers
Function
Get
()
internal/config/config.go:63
↓ 15 callers
Method
String
()
cmd/cli/main.go:43
↓ 11 callers
Method
Close
()
internal/runtime/runtime.go:65
↓ 11 callers
Method
Write
(b []byte)
sdk/sdk.go:64
↓ 11 callers
Function
printErrorAndExit
(err error)
cmd/cli/main.go:202
↓ 10 callers
Function
writeResponse
(w http.ResponseWriter, code int, b []byte)
internal/actrs/wasmserver.go:196
↓ 9 callers
Method
Get
(uuid.UUID)
internal/storage/mod_cache.go:14
↓ 8 callers
Method
WriteHeader
(status int)
sdk/sdk.go:68
↓ 7 callers
Method
ServeHTTP
TODO(anthdm): Handle the favicon.ico
internal/actrs/wasmserver.go:114
↓ 7 callers
Function
makeAPIHandler
(h apiHandler)
internal/api/handler.go:26
↓ 6 callers
Method
GetEndpoint
(uuid.UUID)
internal/storage/storage.go:11
↓ 6 callers
Function
ParseStdout
(stdout io.Reader)
internal/shared/shared.go:24
↓ 5 callers
Function
createServer
()
internal/api/server_test.go:135
↓ 4 callers
Method
CreateDeployment
(*types.Deployment)
internal/storage/storage.go:12
↓ 4 callers
Method
CreateEndpoint
(*types.Endpoint)
internal/storage/storage.go:9
↓ 4 callers
Function
NewDefaultModCache
()
internal/storage/mod_cache.go:23
↓ 4 callers
Function
Parse
(path string)
internal/config/config.go:48
↓ 4 callers
Method
Set
(value string)
cmd/cli/main.go:38
↓ 4 callers
Function
file_proto_types_proto_rawDescGZIP
()
proto/types.pb.go:366
↓ 4 callers
Function
printUsage
()
cmd/cli/main.go:20
↓ 4 callers
Function
seedEndpoint
(t *testing.T, s *Server)
internal/api/server_test.go:129
↓ 3 callers
Method
GetDeployment
(uuid.UUID)
internal/storage/storage.go:13
↓ 3 callers
Function
IngressUrl
()
internal/config/config.go:83
↓ 3 callers
Method
Invoke
(stdin io.Reader, env map[string]string, args ...string)
internal/runtime/runtime.go:52
↓ 3 callers
Function
New
(ctx context.Context, args Args)
internal/runtime/runtime.go:32
↓ 3 callers
Function
NewDeployment
(endpoint *Endpoint, blob []byte)
internal/types/deployment.go:19
↓ 3 callers
Function
NewSQLStore
(user, password, dbname, host, port, sslmode string)
internal/storage/sql.go:18
↓ 3 callers
Method
UpdateEndpoint
(uuid.UUID, UpdateEndpointParams)
internal/storage/storage.go:10
↓ 3 callers
Function
makeURL
makeURL takes a host address and returns a http URL.
internal/config/config.go:68
↓ 3 callers
Function
respondError
(ctx *actor.Context, code int32, msg string, id string)
internal/actrs/runtime.go:183
↓ 2 callers
Function
ApiUrl
()
internal/config/config.go:87
↓ 2 callers
Method
Header
()
sdk/sdk.go:60
↓ 2 callers
Function
IsZeroUUID
(id uuid.UUID)
internal/shared/shared.go:96
↓ 2 callers
Function
NewEndpoint
(name string, runtime string, env map[string]string)
internal/types/endpoint.go:33
↓ 2 callers
Function
NewRuntime
(store storage.Store, cache storage.ModCacher)
internal/actrs/runtime.go:46
↓ 2 callers
Function
NewServer
NewServer returns a new server given a Store interface.
internal/api/server.go:26
↓ 2 callers
Method
Put
(uuid.UUID, wazero.CompilationCache)
internal/storage/mod_cache.go:13
↓ 2 callers
Method
Reset
()
proto/types.pb.go:42
↓ 2 callers
Method
Scan
(dest ...interface{})
internal/storage/sql.go:123
↓ 2 callers
Method
initRouter
()
internal/api/server.go:40
↓ 2 callers
Function
scanEndpoint
(s Scanner, e *types.Endpoint)
internal/storage/sql.go:165
↓ 1 callers
Method
Delete
(uuid.UUID)
internal/storage/mod_cache.go:15
↓ 1 callers
Method
GetEndpoint
(id uuid.UUID)
internal/storage/memory_store.go:31
↓ 1 callers
Method
GetRuntimeMetrics
(uuid.UUID)
internal/storage/storage.go:18
↓ 1 callers
Method
HasActiveDeploy
()
internal/types/endpoint.go:29
↓ 1 callers
Method
Listen
Listen starts listening on the given address.
internal/api/server.go:35
↓ 1 callers
Function
MakeProtoRequest
(id string, r *http.Request)
internal/shared/shared.go:63
↓ 1 callers
Function
New
(config Config)
internal/client/client.go:36
↓ 1 callers
Function
NewConfig
()
internal/client/client.go:19
↓ 1 callers
Function
NewMemoryStore
()
internal/storage/memory_store.go:17
↓ 1 callers
Function
NewRuntimeManager
(c *cluster.Cluster)
internal/actrs/runtime_manager.go:24
↓ 1 callers
Function
NewWasmServer
NewWasmServer return a new wasm server given a storage and a mod cache.
internal/actrs/wasmserver.go:45
↓ 1 callers
Function
ParseRuntimeHTTPResponse
(in string)
internal/shared/shared.go:47
↓ 1 callers
Method
Publish
(params api.PublishParams)
internal/client/client.go:43
↓ 1 callers
Function
ValidRuntime
(runtime string)
internal/types/endpoint.go:14
↓ 1 callers
Method
WithURL
(url string)
internal/client/client.go:25
↓ 1 callers
Function
buildUpdateEndpointQuery
(id uuid.UUID, params UpdateEndpointParams)
internal/storage/sql.go:126
↓ 1 callers
Function
file_proto_types_proto_init
()
proto/types.pb.go:396
↓ 1 callers
Method
handleDeploy
(args []string)
cmd/cli/main.go:156
↓ 1 callers
Method
handleEndpoint
(args []string)
cmd/cli/main.go:117
↓ 1 callers
Method
handleHTTPRequest
(ctx *actor.Context, msg *proto.HTTPRequest)
internal/actrs/runtime.go:127
↓ 1 callers
Method
handlePublish
(args []string)
cmd/cli/main.go:93
↓ 1 callers
Method
handleServeEndpoint
(args []string)
cmd/cli/main.go:186
↓ 1 callers
Method
initialize
(c *actor.Context)
internal/actrs/wasmserver.go:88
↓ 1 callers
Method
initialize
(msg *proto.HTTPRequest)
internal/actrs/runtime.go:87
↓ 1 callers
Function
makeEnvMap
(list []string)
cmd/cli/main.go:190
↓ 1 callers
Function
makeProtoHeader
(header http.Header)
internal/shared/shared.go:86
↓ 1 callers
Function
makeRequest
()
cmd/load/main.go:24
↓ 1 callers
Function
newRequestWithResponse
(request *proto.HTTPRequest)
internal/actrs/wasmserver.go:25
↓ 1 callers
Method
requestRuntime
NOTE: There could be a case where we do not get a response in time, hence the PID will be nil. This case is handled where we should spawn the runtime
internal/actrs/wasmserver.go:98
↓ 1 callers
Function
respond
(res, status)
internal/_testdata/helloworld.js:3
↓ 1 callers
Function
respond
(res, status)
examples/js/index.js:3
↓ 1 callers
Function
scanDeploy
(s Scanner, d *types.Deployment)
internal/storage/sql.go:155
↓ 1 callers
Function
seedEndpoint
(store storage.Store, cache storage.ModCacher)
cmd/api/main.go:57
↓ 1 callers
Function
trimmedEndpointFromURL
(url *url.URL)
internal/shared/shared.go:77
↓ 1 callers
Method
validate
()
internal/api/server.go:74
Function
BenchmarkParseStdout
(b *testing.B)
internal/shared/shared_test.go:14
Method
CreateDeployment
(endpointID uuid.UUID, blob io.Reader, params api.CreateDeploymentParams)
internal/client/client.go:95
Method
CreateDeployment
(deploy *types.Deployment)
internal/storage/sql.go:100
Method
CreateDeployment
(deploy *types.Deployment)
internal/storage/memory_store.go:59
Method
CreateEndpoint
(params api.CreateEndpointParams)
internal/client/client.go:69
Method
CreateEndpoint
(endpoint *types.Endpoint)
internal/storage/sql.go:42
Method
CreateEndpoint
(e *types.Endpoint)
internal/storage/memory_store.go:24
Method
CreateRuntimeMetric
(*types.RuntimeMetric)
internal/storage/storage.go:17
Method
CreateRuntimeMetric
(metric *types.RuntimeMetric)
internal/storage/sql.go:114
Method
CreateRuntimeMetric
(_ *types.RuntimeMetric)
internal/storage/memory_store.go:76
Method
Delete
(id uuid.UUID)
internal/storage/mod_cache.go:42
Method
Descriptor
Deprecated: Use HTTPRequest.ProtoReflect.Descriptor instead.
proto/types.pb.go:70
Method
Descriptor
Deprecated: Use HeaderFields.ProtoReflect.Descriptor instead.
proto/types.pb.go:187
Method
Descriptor
Deprecated: Use HTTPResponse.ProtoReflect.Descriptor instead.
proto/types.pb.go:236
Method
Descriptor
Deprecated: Use RemoveRuntime.ProtoReflect.Descriptor instead.
proto/types.pb.go:297
Method
Get
(id uuid.UUID)
internal/storage/mod_cache.go:35
Method
GetBody
()
proto/types.pb.go:74
Method
GetDeployment
(id uuid.UUID)
internal/storage/sql.go:91
Method
GetDeployment
(id uuid.UUID)
internal/storage/memory_store.go:66
Method
GetDeploymentID
()
proto/types.pb.go:123
Method
GetEndpoint
(id uuid.UUID)
internal/storage/sql.go:60
Method
GetEndpointID
()
proto/types.pb.go:95
next →
1–100 of 176, ranked by callers