Documentation ¶
Index ¶
- type Processor
- type Service
- func (s *Service) AddProcessor(command string, processor *Processor)
- func (s *Service) GetAddressCommandSet() []*pb.AddressCommandSet
- func (s *Service) GetProcessor(command string) (processor *Processor, exists bool)
- func (s *Service) Receive(wrappedReq *pb.Request, wrappedRes *pb.Response) (err error)
- func (s *Service) SendRequest(ctx context.Context, command string, req proto.Message, res proto.Message) error
- func (s *Service) SendRequestWithAddress(ctx context.Context, address string, command string, req proto.Message, ...) error
- func (s *Service) SendWrappedRequest(address string, wrappedReq *pb.Request, wrappedRes *pb.Response) (err error)
- func (s *Service) SetAddressCommands(address string, commands []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService() *Service
func (*Service) AddProcessor ¶
func (*Service) GetAddressCommandSet ¶
func (s *Service) GetAddressCommandSet() []*pb.AddressCommandSet
func (*Service) GetProcessor ¶
func (*Service) SendRequest ¶
func (*Service) SendRequestWithAddress ¶
func (*Service) SendWrappedRequest ¶
Click to show internal directories.
Click to hide internal directories.