Documentation ¶
Overview ¶
Package server implements the HTTP and GRPC servers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server represents the HTTP and GRPC servers.
func New ¶
func New(ctx context.Context, listenAddress string, port int, serveAssetsDir bool, configHandler, ipxeHandler http.Handler, logger *zap.Logger) *Server
New creates a new server.
func (*Server) RegisterService ¶
func (s *Server) RegisterService(desc *grpc.ServiceDesc, impl any)
RegisterService registers a service with the GRPC server.
Implements grpc.ServiceRegistrar interface.
Click to show internal directories.
Click to hide internal directories.