-
Notifications
You must be signed in to change notification settings - Fork 6
/
constants.go
26 lines (22 loc) · 1.38 KB
/
constants.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package main
const defaultHost = "localhost"
const defaultPort = "8000"
const strHelpDoc = "\nConfiguration Items (via environment variables):\n" +
"- REDISEEN_REDIS_URI: URI of your Redis database, e.g. `redis://:@localhost:6379`\n" +
"- REDISEEN_HOST: (optional) host of the service. Default port is 'localhost'\n" +
"- REDISEEN_PORT: (optional) port of the service. Default port is 8000\n" +
"- REDISEEN_DB_EXPOSED: Redis logical database(s) to expose. e.g., `0`, `0;3;9`, `0-9;15`, or `*`\n" +
"- REDISEEN_KEY_PATTERN_EXPOSED: Regular expression pattern, " +
"representing the name pattern of keys that you intend to expose\n" +
"- REDISEEN_KEY_PATTERN_EXPOSE_ALL: If you intend to expose *all* your keys, " +
"set `REDISEEN_KEY_PATTERN_EXPOSE_ALL` to `true`\n" +
"- REDISEEN_API_KEY: (Optional) API Key Authentication is only enabled when REDISEEN_API_KEY is set" +
" and is not ''. Once it is set, client must add the API key into HTTP header as X-API-KEY" +
" in order to access the API"
const strLogo = " _____ _ _ _____\n" +
"| __ \\ | |(_) / ____|\n" +
"| |__) | ___ __| | _ | (___ ___ ___ _ __ \n" +
"| _ / / _ \\ / _` || | \\___ \\ / _ \\ / _ \\| '_ \\\n" +
"| | \\ \\| __/| (_| || | ____) || __/| __/| | | |\n" +
"|_| \\_\\\\___| \\__,_||_||_____/ \\___| \\___||_| |_|"
const strHeader = strLogo + "\n" + "rediseen " + rediseenVersion