Documentation ¶
Index ¶
- Variables
- type Router
- func (r *Router) Error() parcel.ErrorPackager
- func (r *Router) List()
- func (r *Router) RCProcess(c *context.Context, req chan *parcel.RocPacket, errs chan error) (chan proto.Message, chan error)
- func (r *Router) RRProcess(c *context.Context, req *parcel.RocPacket, rsp *parcel.RocPacket) error
- func (r *Router) RSProcess(c *context.Context, req *parcel.RocPacket) (chan proto.Message, chan error)
- func (r *Router) RegisterChannelHandler(service string, rc handler.ChannelHandler)
- func (r *Router) RegisterHandler(method string, rr handler.Handler)
- func (r *Router) RegisterStreamHandler(method string, rs handler.StreamHandler)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFoundHandler = errors.New("not found route path")
)
Functions ¶
This section is empty.
Types ¶
type Router ¶
func NewRouter ¶
func NewRouter(wrappers []handler.WrapperHandler, err parcel.ErrorPackager) *Router
NewRouter create a new Router
func (*Router) Error ¶
func (r *Router) Error() parcel.ErrorPackager
func (*Router) RegisterChannelHandler ¶
func (r *Router) RegisterChannelHandler(service string, rc handler.ChannelHandler)
func (*Router) RegisterHandler ¶
func (*Router) RegisterStreamHandler ¶
func (r *Router) RegisterStreamHandler(method string, rs handler.StreamHandler)
Click to show internal directories.
Click to hide internal directories.