error.go 281 B

1234567891011
  1. // Copyright 2019 getensh.com. All rights reserved.
  2. // Use of this source code is governed by getensh.com.
  3. package tasker
  4. import "google.golang.org/grpc/status"
  5. var (
  6. ServiceError = status.Error(1, "内部服务错误")
  7. InterruptError = status.Error(2, "服务维护中")
  8. )