mirror of
https://github.com/hanzoai/ca.git
synced 2026-11-03 18:08:27 +00:00
3.5 KiB
3.5 KiB
status
import "github.com/effective-security/trustyca/server/service/status"
Index
- Constants
- func Factory(server gserver.GServer) any
- type Service
- func (s *Service) Close()
- func (s *Service) IsReady() bool
- func (s *Service) Name() string
- func (s *Service) RegisterGRPC(r *grpc.Server)
- func (s *Service) RegisterRoute(r restserver.Router)
- func (s *Service) Server(_ context.Context, _ *emptypb.Empty) (*pb.ServerStatusResponse, error)
- func (s *Service) Version(_ context.Context, _ *emptypb.Empty) (*pb.ServerVersion, error)
Constants
ServiceName provides the Service Name for this package
const ServiceName = "status"
func Factory
func Factory(server gserver.GServer) any
Factory returns a factory of the service
type Service
Service defines the Status service
type Service struct {
// contains filtered or unexported fields
}
func (*Service) Close
func (s *Service) Close()
Close the subservices and its resources
func (*Service) IsReady
func (s *Service) IsReady() bool
IsReady indicates that the service is ready to serve its end-points
func (*Service) Name
func (s *Service) Name() string
Name returns the service name
func (*Service) RegisterGRPC
func (s *Service) RegisterGRPC(r *grpc.Server)
RegisterGRPC registers gRPC handler
func (*Service) RegisterRoute
func (s *Service) RegisterRoute(r restserver.Router)
RegisterRoute adds the Status API endpoints to the overall URL router
func (*Service) Server
func (s *Service) Server(_ context.Context, _ *emptypb.Empty) (*pb.ServerStatusResponse, error)
Server returns the server version.
func (*Service) Version
func (s *Service) Version(_ context.Context, _ *emptypb.Empty) (*pb.ServerVersion, error)
Version returns the server version.
Generated by gomarkdoc