INNER CODE UNIT · Go
NodeWithLoader
pojol/braid · core/node.go:54
func NodeWithLoader(load IActorLoader) NodeOption {
return func(p *NodeParm) {
p.Loader = load
}
}
func NodeWithFactory(factory IActorFactory) NodeOption {
return func(np *NodeParm) {
np.Factory = factory
}
}
func NodeWithIP(ip string) NodeOption {
return func(np *NodeParm) {
np.Ip = ip
}
}