6 "golang.org/x/sync/errgroup"
9// NewServerGroup creates a new Server to start and gracefully stop a collection
11func NewServerGroup(servers ...Server) Server {
17// serverGroup manages the starting and graceful shutdown of a collection of
19type serverGroup struct {
23// Start runs the servers in the server group.
24func (s *serverGroup) Start(ctx context.Context) error {
25 g, groupCtx := errgroup.WithContext(ctx)
27 for _, server := range s.servers {
30 return srv.Start(groupCtx)
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list