server with basic hot reload
This commit is contained in:
20
internal/server/status.go
Normal file
20
internal/server/status.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package server
|
||||
|
||||
type StatusID int
|
||||
|
||||
const (
|
||||
StatusStopped StatusID = iota
|
||||
StatusStarting
|
||||
StatusOK
|
||||
StatusError
|
||||
StatusInitializing
|
||||
)
|
||||
|
||||
type Status struct {
|
||||
ID StatusID
|
||||
Err error
|
||||
}
|
||||
|
||||
func (s Status) Error() string {
|
||||
return s.Err.Error()
|
||||
}
|
||||
Reference in New Issue
Block a user