error.go 287 B

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