添加运行模式配置,优化调试和生产环境的日志输出
This commit is contained in:
@@ -237,6 +237,20 @@ const (
|
||||
PayloadClientConfidential
|
||||
)
|
||||
|
||||
func (t PayloadType) Name() string {
|
||||
switch t {
|
||||
case PayloadUser:
|
||||
return "user"
|
||||
case PayloadAdmin:
|
||||
return "admn"
|
||||
case PayloadClientPublic:
|
||||
return "cpub"
|
||||
case PayloadClientConfidential:
|
||||
return "ccnf"
|
||||
}
|
||||
return "unknown"
|
||||
}
|
||||
|
||||
type Agent struct {
|
||||
Id int32 `json:"id,omitempty"`
|
||||
Addr string `json:"addr,omitempty"`
|
||||
|
||||
Reference in New Issue
Block a user