Documentation
¶
Overview ¶
Entry point that allows services to register themselves with the registry.
Index ¶
Constants ¶
View Source
const ( LogService = ServiceName("LogService") GradingService = ServiceName("GradingService") TeacherPortal = ServiceName("TeacherPortal") )
View Source
const ServerPort = ":3000"
TODO(moosch): Pull this in from config file or env
View Source
const ServiceURL = "http://localhost" + ServerPort + "/services" // Root endpoint for service queries.
Variables ¶
This section is empty.
Functions ¶
func SetupRegistryService ¶
func SetupRegistryService()
Types ¶
type Registration ¶
type Registration struct {
ServiceName ServiceName
ServiceURL string
RequiredServices []ServiceName
ServiceUpdateURL string
HeartbeatURL string
}
type RegistryService ¶
type RegistryService struct{}
func (RegistryService) ServeHTTP ¶
func (s RegistryService) ServeHTTP(w http.ResponseWriter, req *http.Request)
type ServiceName ¶
type ServiceName string
Click to show internal directories.
Click to hide internal directories.