Documentation ¶
Index ¶
- type AccessControlEvaluator
- type ServerAdmin
- func (s *ServerAdmin) GetLogSpec(ctx context.Context, env *common.Envelope) (*pb.LogSpecResponse, error)
- func (s *ServerAdmin) GetModuleLogLevel(ctx context.Context, env *common.Envelope) (*pb.LogLevelResponse, error)
- func (s *ServerAdmin) GetStatus(ctx context.Context, env *common.Envelope) (*pb.ServerStatus, error)
- func (s *ServerAdmin) RevertLogLevels(ctx context.Context, env *common.Envelope) (*empty.Empty, error)
- func (s *ServerAdmin) SetLogSpec(ctx context.Context, env *common.Envelope) (*pb.LogSpecResponse, error)
- func (s *ServerAdmin) SetModuleLogLevel(ctx context.Context, env *common.Envelope) (*pb.LogLevelResponse, error)
- func (s *ServerAdmin) StartServer(ctx context.Context, env *common.Envelope) (*pb.ServerStatus, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessControlEvaluator ¶
type AccessControlEvaluator interface { //评估评估给定签名数据的创建者的资格 //由行政服务部提供服务 Evaluate(signatureSet []*common.SignedData) error }
AccessControlEvaluator评估给定SignedData的创建者 有资格使用管理服务
type ServerAdmin ¶
type ServerAdmin struct {
// contains filtered or unexported fields
}
ServerAdmin对等端管理服务的实现
func NewAdminServer ¶
func NewAdminServer(ace AccessControlEvaluator) *ServerAdmin
newadminserver创建并返回一个管理服务实例。
func (*ServerAdmin) GetLogSpec ¶
func (s *ServerAdmin) GetLogSpec(ctx context.Context, env *common.Envelope) (*pb.LogSpecResponse, error)
func (*ServerAdmin) GetModuleLogLevel ¶
func (s *ServerAdmin) GetModuleLogLevel(ctx context.Context, env *common.Envelope) (*pb.LogLevelResponse, error)
func (*ServerAdmin) GetStatus ¶
func (s *ServerAdmin) GetStatus(ctx context.Context, env *common.Envelope) (*pb.ServerStatus, error)
func (*ServerAdmin) RevertLogLevels ¶
func (*ServerAdmin) SetLogSpec ¶
func (s *ServerAdmin) SetLogSpec(ctx context.Context, env *common.Envelope) (*pb.LogSpecResponse, error)
func (*ServerAdmin) SetModuleLogLevel ¶
func (s *ServerAdmin) SetModuleLogLevel(ctx context.Context, env *common.Envelope) (*pb.LogLevelResponse, error)
func (*ServerAdmin) StartServer ¶
func (s *ServerAdmin) StartServer(ctx context.Context, env *common.Envelope) (*pb.ServerStatus, error)
Click to show internal directories.
Click to hide internal directories.