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) GetName ¶
func (s *DefaultNilService) GetName() (*string, error)
func (*DefaultNilService) GetParameters ¶
func (s *DefaultNilService) GetParameters() (ToolParameters, error)
func (*DefaultNilService) Handle ¶
func (s *DefaultNilService) Handle(ctx ToolContext) error
func (*DefaultNilService) Probe ¶
func (d *DefaultNilService) Probe() error
type DefaultUnimplementedService ¶
type DefaultUnimplementedService struct{}
func (*DefaultUnimplementedService) GetName ¶
func (s *DefaultUnimplementedService) GetName() (*string, error)
func (*DefaultUnimplementedService) GetParameters ¶
func (s *DefaultUnimplementedService) GetParameters() (*ToolParameters, error)
func (*DefaultUnimplementedService) Handle ¶
func (s *DefaultUnimplementedService) Handle(ctx ToolContext) error
func (*DefaultUnimplementedService) Probe ¶
func (d *DefaultUnimplementedService) Probe() error
type RpcClient ¶
type RpcClient struct {
// contains filtered or unexported fields
}
func (*RpcClient) GetParameters ¶
func (rc *RpcClient) GetParameters() (*ToolParameters, error)
func (*RpcClient) Handle ¶
func (rc *RpcClient) Handle(ctx *ToolContext) error
type RpcServer ¶
type RpcServer struct {
// contains filtered or unexported fields
}
func (*RpcServer) GetParameters ¶
func (rs *RpcServer) GetParameters(_ struct{}, resp *ToolParameters) error
type ToolContext ¶
type ToolParameters ¶
type ToolParameters struct {
ReturnType string `json:"return_type"`
Description string `json:"description"`
Properties []ToolProperty `json:"properties"`
}
type ToolPlugin ¶
type ToolPlugin struct {
plugin.NetRPCUnsupportedPlugin
Service ToolService
}
type ToolProperty ¶
type ToolService ¶
type ToolService interface {
GetName() (string, error)
GetParameters() (*ToolParameters, error)
Handle(ctx *ToolContext) error
Probe() error
}
Click to show internal directories.
Click to hide internal directories.