[Tutorial] Run your own satellite (part 10) - Introducing mud and ranged-loop

Everything is a component

Everything I ever wrote so far about satellite (storj/storj repo), it can be run manually with exec, for example:

satellite-modular api:

func (a *Api) GetSelector(ball *mud.Ball) mud.ComponentSelector {
	return mud.Or(
		Observability(ball),
		mud.Select[*satellite.EndpointRegistration](ball),
		mud.Select[*orders.Chore](ball),
	)
}

Using exec:

satellite-modular exec --components='satellite.EndpointRegistration,orders.Chore' ...

satellite-modular auditor:

func (a *Auditor) GetSelector(ball *mud.Ball) mud.ComponentSelector {
	return mud.Or(
		Observability(ball),
		mud.Select[*audit.Worker](ball),
		mud.Select[*audit.ReverifyWorker](ball))
}

Using exec:

satellite-modular exec --components='audit.Worker,audit.ReverifyWorker' ...

And so on, you can mix and match components however you like it :exploding_head:, see more at satellite/run.