Documentation
¶
Index ¶
- Variables
- type HttpPluginPostAuthFunc
- type HttpServerPluginHelper
- type NhpPluginPostAuthFunc
- type NhpServerPluginHelper
- type PluginHandler
- type PluginHandlerSymbol
- func (s *PluginHandlerSymbol) AuthWithHttp(ctx *gin.Context, req *common.HttpKnockRequest, hlpr *HttpServerPluginHelper) (*common.ServerKnockAckMsg, error)
- func (s *PluginHandlerSymbol) AuthWithNHP(req *common.NhpAuthRequest, helper *NhpServerPluginHelper) (*common.ServerKnockAckMsg, error)
- func (s *PluginHandlerSymbol) Close() error
- func (s *PluginHandlerSymbol) ExportedData() *PluginParamsOut
- func (s *PluginHandlerSymbol) Init(in *PluginParamsIn) error
- func (s *PluginHandlerSymbol) ListService(req *common.NhpListRequest, helper *NhpServerPluginHelper) (*common.ServerListResultMsg, error)
- func (s *PluginHandlerSymbol) RegisterAgent(req *common.NhpRegisterRequest, helper *NhpServerPluginHelper) (*common.ServerRegisterAckMsg, error)
- func (s *PluginHandlerSymbol) RequestOTP(req *common.NhpOTPRequest, helper *NhpServerPluginHelper) error
- func (s *PluginHandlerSymbol) Signature() string
- func (s *PluginHandlerSymbol) Version() string
- type PluginParamsIn
- type PluginParamsOut
Constants ¶
This section is empty.
Variables ¶
View Source
var ExeDirPath string
Functions ¶
This section is empty.
Types ¶
type HttpPluginPostAuthFunc ¶
type HttpPluginPostAuthFunc func(*common.HttpKnockRequest, *common.ResourceData) (*common.ServerKnockAckMsg, error)
type HttpServerPluginHelper ¶
type HttpServerPluginHelper struct { StopSignal <-chan struct{} AuthWithHttpCallbackFunc HttpPluginPostAuthFunc }
type NhpPluginPostAuthFunc ¶
type NhpPluginPostAuthFunc func(*common.NhpAuthRequest, *common.ResourceData) (*common.ServerKnockAckMsg, error)
type NhpServerPluginHelper ¶
type NhpServerPluginHelper struct { StopSignal <-chan struct{} AuthWithNhpCallbackFunc NhpPluginPostAuthFunc }
type PluginHandler ¶
type PluginHandler interface { Version() string Signature() string ExportedData() *PluginParamsOut Init(*PluginParamsIn) error Close() error RequestOTP(*common.NhpOTPRequest, *NhpServerPluginHelper) error RegisterAgent(*common.NhpRegisterRequest, *NhpServerPluginHelper) (*common.ServerRegisterAckMsg, error) ListService(*common.NhpListRequest, *NhpServerPluginHelper) (*common.ServerListResultMsg, error) AuthWithNHP(*common.NhpAuthRequest, *NhpServerPluginHelper) (*common.ServerKnockAckMsg, error) AuthWithHttp(*gin.Context, *common.HttpKnockRequest, *HttpServerPluginHelper) (*common.ServerKnockAckMsg, error) }
func ReadPluginHandler ¶
func ReadPluginHandler(pluginPath string) PluginHandler
type PluginHandlerSymbol ¶
type PluginHandlerSymbol struct {
// contains filtered or unexported fields
}
func (*PluginHandlerSymbol) AuthWithHttp ¶
func (s *PluginHandlerSymbol) AuthWithHttp(ctx *gin.Context, req *common.HttpKnockRequest, hlpr *HttpServerPluginHelper) (*common.ServerKnockAckMsg, error)
func (*PluginHandlerSymbol) AuthWithNHP ¶
func (s *PluginHandlerSymbol) AuthWithNHP(req *common.NhpAuthRequest, helper *NhpServerPluginHelper) (*common.ServerKnockAckMsg, error)
func (*PluginHandlerSymbol) Close ¶
func (s *PluginHandlerSymbol) Close() error
func (*PluginHandlerSymbol) ExportedData ¶
func (s *PluginHandlerSymbol) ExportedData() *PluginParamsOut
func (*PluginHandlerSymbol) Init ¶
func (s *PluginHandlerSymbol) Init(in *PluginParamsIn) error
func (*PluginHandlerSymbol) ListService ¶
func (s *PluginHandlerSymbol) ListService(req *common.NhpListRequest, helper *NhpServerPluginHelper) (*common.ServerListResultMsg, error)
func (*PluginHandlerSymbol) RegisterAgent ¶
func (s *PluginHandlerSymbol) RegisterAgent(req *common.NhpRegisterRequest, helper *NhpServerPluginHelper) (*common.ServerRegisterAckMsg, error)
func (*PluginHandlerSymbol) RequestOTP ¶
func (s *PluginHandlerSymbol) RequestOTP(req *common.NhpOTPRequest, helper *NhpServerPluginHelper) error
func (*PluginHandlerSymbol) Signature ¶
func (s *PluginHandlerSymbol) Signature() string
func (*PluginHandlerSymbol) Version ¶
func (s *PluginHandlerSymbol) Version() string
type PluginParamsIn ¶
type PluginParamsOut ¶
type PluginParamsOut struct { }
Click to show internal directories.
Click to hide internal directories.