frm-go-base

module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2022 License: Apache-2.0

README

frm-go-base

mysql config json

{
  "max_open_num" : 2,
  "max_idle_num" : 10,
  "request_timeout" : 3,
  "charset" : "utf8mb4",
  "debugger_log" : true,
  "db" : {
    "default": {
      "master": {
        "host": "127.0.0.1",
        "port": "9800",
        "db": "frm_auth",
        "user": "root",
        "pwd": "Ptz@ssw0rd"
      },
      "slave": []
    }
  }
}

redis config json

{
  "min_idle_num": 10,
  "pool_size": 10,
  "db": {
    "default": {
      "host": "localhost",
      "port": "6379",
      "db": "",
      "user": "",
      "pwd": ""
    }
  }
}

web config json

{
  "ip" : "0.0.0.0",
  "port" : 9902,
  "timeout": {
    "read" : 5,
    "write" : 5,
    "idle" : 10
  }
}

session config json

{
  "key": {
    "prefix": "frm-session:",
    "max_age": 3600
  },
  "redis": {
    "min_idle_num": 10,
    "pool_size": 10,
    "db": {
      "host": "localhost",
      "port": "6379",
      "db": "",
      "user": "",
      "pwd": ""
    }
  }
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL