INNER CODE UNIT · Go
NodeWithID
pojol/braid · core/node.go:42
func NodeWithID(id string) NodeOption {
return func(np *NodeParm) {
np.ID = id
}
}
func NodeWithWeight(weight int) NodeOption {
return func(np *NodeParm) {
np.Weight = weight
}
}
func NodeWithLoader(load IActorLoader) NodeOption {
return func(p *NodeParm) {
p.Loader = load
}
}