specta

command module
v0.1.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 1, 2025 License: MIT Imports: 2 Imported by: 0

README

specta

development
specta -h
Golang based RPC microservice.

Usage:
  specta [flags]
  specta [command]

Available Commands:
  daemon      Execute Specta's long running process for exposing RPC handlers.
  version     Print the version information for this command line tool.

Flags:
  -h, --help   help for specta

Use "specta [command] --help" for more information about a command.
SPECTA_ENVIRONMENT=development specta daemon
{ "time":"2025-06-10 14:25:02", "level":"info", "message":"daemon is starting",        "environment":"development", "caller":"/Users/xh3b4sd/project/0xSplits/specta/pkg/daemon/daemon.go:25" }
{ "time":"2025-06-10 14:25:02", "level":"info", "message":"server is accepting calls", "address":"127.0.0.1:7777",  "caller":"/Users/xh3b4sd/project/0xSplits/specta/pkg/server/server.go:88" }
{ "time":"2025-06-10 14:25:02", "level":"info", "message":"worker is executing tasks",                              "caller":"/Users/xh3b4sd/project/0xSplits/specta/pkg/worker/worker.go:39" }
curl -s http://127.0.0.1:7777
OK
curl -s http://127.0.0.1:7777/version | jq .
{
  "arc": "arm64",
  "gos": "darwin",
  "sha": "n/a",
  "src": "https://github.com/0xSplits/specta",
  "tag": "n/a",
  "ver": "go1.24.3"
}
curl -s --request "POST" --header "Content-Type: application/json" --data '{}' http://127.0.0.1:7777/metrics.API/Counter | jq .
{
  "result": []
}
specta version
Git Sha       n/a
Git Tag       n/a
Repository    https://github.com/0xSplits/specta
Go Arch       arm64
Go OS         darwin
Go Version    go1.24.3

Docker

See https://github.com/GoogleContainerTools/distroless

docker build \
  --build-arg SHA="local-test-sha" \
  --build-arg TAG="local-test-tag" \
  -t specta:local .
docker run -e SPECTA_ENVIRONMENT=development -p 7777:7777 specta:local daemon

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL