Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultNilService ¶
type DefaultNilService struct{}
func (*DefaultNilService) GetPluginInfo ¶
func (s *DefaultNilService) GetPluginInfo() (PluginInfo, error)
type DefaultUnimplementedService ¶
type DefaultUnimplementedService struct{}
func (*DefaultUnimplementedService) GetPluginInfo ¶
func (s *DefaultUnimplementedService) GetPluginInfo() (*PluginInfo, error)
type IdentityPlugin ¶
type IdentityPlugin struct {
plugin.NetRPCUnsupportedPlugin
Service IdentityService
}
type IdentityService ¶
type IdentityService interface {
GetPluginInfo() (*PluginInfo, error)
}
type PluginInfo ¶
type PluginServiceInfo ¶
type PluginServiceInfo struct {
Name string `json:"service"`
Type PluginServiceType `json:"type"`
Description string `json:"description"`
}
func GetPluginServiceInfo ¶
func GetPluginServiceInfo(name string, services []PluginServiceInfo) (*PluginServiceInfo, bool)
type PluginServiceType ¶
type PluginServiceType string
const ( IdentityServiceType PluginServiceType = "identity" ToolServiceType PluginServiceType = "tool" CacheServiceType PluginServiceType = "cache" )
type RpcClient ¶
type RpcClient struct {
// contains filtered or unexported fields
}
func (*RpcClient) GetPluginInfo ¶
func (c *RpcClient) GetPluginInfo() (*PluginInfo, error)
type RpcServer ¶
type RpcServer struct {
// contains filtered or unexported fields
}
func (*RpcServer) GetPluginInfo ¶
func (s *RpcServer) GetPluginInfo(_ struct{}, resp *PluginInfo) error
Click to show internal directories.
Click to hide internal directories.