github.com/cmd-stream/base-go@v0.0.0-20230813145615-dd6ac24c16f5/server/errs.go (about)

     1  package server
     2  
     3  import "errors"
     4  
     5  // ErrNoWorkers happens when Server serves with 0 workers.
     6  var ErrNoWorkers = errors.New("not positive Conf.WorkersCount")
     7  
     8  // ErrNotServing happens when Server is not serving and is closed or
     9  // shutdown.
    10  var ErrNotServing = errors.New("server is not serving")
    11  
    12  // ErrShutdown happens when Server is shutdown while serving.
    13  var ErrShutdown = errors.New("shutdown")
    14  
    15  // ErrClosed happens when Server is closed while serving.
    16  var ErrClosed = errors.New("closed")