Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExternalServer ¶
type ExternalServer struct {
// contains filtered or unexported fields
}
ExternalServer represents the external-facing API server
func NewExternalServer ¶
NewExternalServer creates a new external server instance
func (*ExternalServer) Registry ¶
func (s *ExternalServer) Registry() *services.Registry
Registry returns the service registry
func (*ExternalServer) ServeHTTP ¶
func (s *ExternalServer) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP implements http.Handler
type GRPCHealthChecker ¶
type GRPCHealthChecker struct {
// contains filtered or unexported fields
}
HealthChecker implements grpchealth.Checker
func NewHealthChecker ¶
func NewHealthChecker(services []string, healthCheckers ...HealthChecker) *GRPCHealthChecker
func (*GRPCHealthChecker) Check ¶
func (c *GRPCHealthChecker) Check(ctx context.Context, req *grpchealth.CheckRequest) (*grpchealth.CheckResponse, error)
Check implements grpchealth.Checker
type HealthChecker ¶
type InternalServer ¶
type InternalServer struct {
// contains filtered or unexported fields
}
InternalServer represents the internal API server for worker communication
func NewInternalServer ¶
func NewInternalServer(cfg *config.Config, log *logger.Logger, registry *services.Registry) (*InternalServer, error)
NewInternalServer creates a new internal server instance
func (*InternalServer) ServeHTTP ¶
func (s *InternalServer) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP implements http.Handler
Click to show internal directories.
Click to hide internal directories.