Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ResolverChain *list.List
Functions ¶
func RegisterResolver ¶
func RegisterResolver(resolver Resolver)
func Resolve ¶
func Resolve(request chan []byte, stop chan interface{}, invCallback func(string, invocation.Invocation)) (invocation.Invocation, bool)
Resolve will loop the resolverchain to resolve the request
Types ¶
type MyResolver ¶
type MyResolver struct {
Name string
}
func (*MyResolver) Resolve ¶
func (resolver *MyResolver) Resolve(data chan []byte, stop chan interface{}, invCallback func(string, invocation.Invocation)) (invocation.Invocation, bool)
type Resolver ¶
type Resolver interface {
Resolve(chan []byte, chan interface{}, func(string, invocation.Invocation)) (invocation.Invocation, bool)
}
Click to show internal directories.
Click to hide internal directories.