consts.go 976 B

123456789101112131415161718192021
  1. // Copyright GoFrame gf Author(https://goframe.org). All Rights Reserved.
  2. //
  3. // This Source Code Form is subject to the terms of the MIT License.
  4. // If a copy of the MIT was not distributed with this file,
  5. // You can obtain one at https://github.com/gogf/gf.
  6. // Package consts defines constants that are shared all among packages of framework.
  7. package consts
  8. const (
  9. ConfigNodeNameDatabase = "database"
  10. ConfigNodeNameLogger = "logger"
  11. ConfigNodeNameRedis = "redis"
  12. ConfigNodeNameViewer = "viewer"
  13. ConfigNodeNameServer = "server" // General version configuration item name.
  14. ConfigNodeNameServerSecondary = "httpserver" // New version configuration item name support from v2.
  15. // StackFilterKeyForGoFrame is the stack filtering key for all GoFrame module paths.
  16. // Eg: .../pkg/mod/github.com/gogf/gf/v2@v2.0.0-20211011134327-54dd11f51122/debug/gdebug/gdebug_caller.go
  17. StackFilterKeyForGoFrame = "github.com/gogf/gf/"
  18. )