Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceCaller ¶
type ServiceCaller struct {
// contains filtered or unexported fields
}
func NewServiceCaller ¶
func NewServiceCaller(ws *ws.Writer, ctx context.Context) ServiceCaller
func (*ServiceCaller) Call ¶
func (s *ServiceCaller) Call(req ServiceRequest) (ServiceResult, error)
type ServiceRequest ¶
type ServiceRequest struct {
Id int64 `json:"id"`
RequestType string `json:"type"`
Domain string `json:"domain"`
Service string `json:"service"`
ServiceData map[string]any `json:"service_data,omitempty"`
Target ServiceTarget `json:"target,omitempty"`
ReturnResponse bool `json:"return_response"`
}
func NewServiceRequest ¶
func NewServiceRequest() ServiceRequest
type ServiceResult ¶
Click to show internal directories.
Click to hide internal directories.