Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
chain33-pai
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
szh
chain33-pai
Commits
e619e1e2
Commit
e619e1e2
authored
Jan 10, 2020
by
ligaishun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update setting.go
parent
32fb5fa4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
setting.go
pkg/setting/setting.go
+13
-0
No files found.
pkg/setting/setting.go
View file @
e619e1e2
...
@@ -67,6 +67,18 @@ type block struct {
...
@@ -67,6 +67,18 @@ type block struct {
var
BlockSetting
=
&
block
{}
var
BlockSetting
=
&
block
{}
type
Chain33_pai
struct
{
Path
string
Scripts
string
SS
string
SSH
string
Keygen
string
NetStat
string
}
var
Chain33Pai
=&
Chain33_pai
{}
var
cfg
*
ini
.
File
var
cfg
*
ini
.
File
// Setup initialize the configuration instance
// Setup initialize the configuration instance
...
@@ -82,6 +94,7 @@ func Setup() {
...
@@ -82,6 +94,7 @@ func Setup() {
mapTo
(
"database"
,
DatabaseSetting
)
mapTo
(
"database"
,
DatabaseSetting
)
mapTo
(
"redis"
,
RedisSetting
)
mapTo
(
"redis"
,
RedisSetting
)
mapTo
(
"block"
,
BlockSetting
)
mapTo
(
"block"
,
BlockSetting
)
mapTo
(
"chain33-pai"
,
Chain33Pai
)
AppSetting
.
ImageMaxSize
=
AppSetting
.
ImageMaxSize
*
1024
*
1024
AppSetting
.
ImageMaxSize
=
AppSetting
.
ImageMaxSize
*
1024
*
1024
ServerSetting
.
ReadTimeout
=
ServerSetting
.
ReadTimeout
*
time
.
Second
ServerSetting
.
ReadTimeout
=
ServerSetting
.
ReadTimeout
*
time
.
Second
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment