server

package
v0.0.0-...-7ad5d0e Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: MIT Imports: 22 Imported by: 0

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

func NewExternalServer(cfg *config.Config, log *logger.Logger) (*ExternalServer, error)

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

Check implements grpchealth.Checker

type HealthChecker

type HealthChecker interface {
	CheckHealth(ctx context.Context) error
}

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

Jump to

Keyboard shortcuts

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