reflector

command module
v0.0.0-...-dffbb31 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: MIT Imports: 9 Imported by: 0

README

Dogebox reflector service

This service is a basic in-memory key-pair cache. It is used by the Dogebox (by default) to persist its local, internal IP address somewhere that the users client can find it once the Dogebox has switched networks.

API
GET /:token

Fetch the IP submitted via token. Is a one-shot fetch, will be removed after you have retrieved it.

Return 200 { "ip": "1.2.3.4" } if found.

Returns 404 if not found.

POST /

Required body: { "token": "abc", "ip": "1.2.3.4" }

Returns 201 on create.

Rate limited to 1 per minute via IP.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
api

Jump to

Keyboard shortcuts

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