Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Error = errs.Class("api server")
Error is an error class for API http server error.
Functions ¶
func GetAPIIdentifier ¶
GetAPIIdentifier return the authenticated identity of the client.
func ServeJSONError ¶
ServeJSONError writes JSON error to response output stream.
Types ¶
type Config ¶
type Config struct { Address string `help:"public address to listen on" default:":10000"` Keys []string `help:"List of user:secret pairs to connect to service endpoints."` }
Config holds API endpoint configuration.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server represents storjscan API web server.
architecture: Endpoint
Click to show internal directories.
Click to hide internal directories.