Documentation ¶
Overview ¶
Package status provides functionality for ...
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RPC = struct { RpcService struct{ Status string } }{ RpcService: struct{ Status string }{ Status: "status", }, }
Functions ¶
Types ¶
type OperationalStatus ¶
type OperationalStatus string
var ( Operational OperationalStatus = "operational" Degraded OperationalStatus = "degraded" Foobar OperationalStatus = "foobar" )
func (OperationalStatus) String ¶
func (o OperationalStatus) String() string
type RpcService ¶
type RpcService struct { zenrpc.Service // Embeds the zenrpc.Service for JSON-RPC functionality. // contains filtered or unexported fields }
RpcService struct represents the RPC service for ACL operations.
func (RpcService) Invoke ¶
func (s RpcService) Invoke(ctx context.Context, w http.ResponseWriter, method string, params json.RawMessage) zenrpc.Response
Invoke is as generated code from zenrpc cmd
func (RpcService) SMD ¶
func (RpcService) SMD() smd.ServiceInfo
type Service ¶
type Service struct { *service.BaseService // contains filtered or unexported fields }
Service represents the ACL service for managing access control lists.
func NewService ¶
func NewService(ctx *cli.Context, baseService *service.BaseService) (*Service, error)
NewService creates a new instance of the ACL service.
It initializes the service with the provided CLI context and base service. The ACL service registers GRPC server ACL middleware and namespaces for RPC.
func (*Service) Dependencies ¶
func (s *Service) Dependencies() map[service.DependencyName]service.Option
Dependencies returns the dependencies required by the ACL service.
func (*Service) RegisterNamespaces ¶
RegisterNamespaces registers RPC namespaces for the ACL service.
It registers the "acl" namespace with the RpcService instance.
type Status ¶
type Status struct { NetworkStatus OperationalStatus `json:"status"` ServicesStatus OperationalStatus `json:"services_status"` }
Click to show internal directories.
Click to hide internal directories.