Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrorTimeoutComplete = errors.New("complete timeout")
)
Functions ¶
This section is empty.
Types ¶
type AppendRule ¶
type AppendRule = router.AppendRule
type CompleteCaller ¶
type CompleteCaller struct { }
func NewCompleteCaller ¶
func NewCompleteCaller() *CompleteCaller
func (*CompleteCaller) Destroy ¶
func (h *CompleteCaller) Destroy()
type ErrHandler ¶
type ErrHandler struct {
// contains filtered or unexported fields
}
func NewErrHandler ¶
func NewErrHandler(err error) *ErrHandler
type IManger ¶
type IManger interface { Set(id string, port int, hosts []string, service string, method string, append []AppendRule, router router.IRouterHandler) error Delete(id string) }
type IRouterData ¶
type IRouterData interface { Set(id string, port int, hosts []string, service string, method string, append []AppendRule, router router.IRouterHandler) IRouterData Delete(id string) IRouterData Parse() (router.IMatcher, error) }
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func (*Manager) FastHandler ¶
func (m *Manager) FastHandler(port int, srv interface{}, stream grpc.ServerStream) error
func (*Manager) Set ¶
func (m *Manager) Set(id string, port int, hosts []string, service string, method string, append []AppendRule, router router.IRouterHandler) error
func (*Manager) SetGlobalFilters ¶
type Router ¶
type Router struct { Id string Port int Hosts []string Service string Method string Appends []AppendRule GrpcRouter router.IRouterHandler }
type RouterData ¶
type RouterData struct {
// contains filtered or unexported fields
}
func (*RouterData) Delete ¶
func (rs *RouterData) Delete(id string) IRouterData
func (*RouterData) Set ¶
func (rs *RouterData) Set(id string, port int, hosts []string, service string, method string, append []AppendRule, router router.IRouterHandler) IRouterData
Click to show internal directories.
Click to hide internal directories.