default http behavior on is my self
This commit is contained in:
@@ -19,6 +19,23 @@ const (
|
||||
BOOKING
|
||||
)
|
||||
|
||||
var defaultAPI = [...]string{
|
||||
"",
|
||||
"oc-catalog",
|
||||
"oc-catalog",
|
||||
"oc-catalog",
|
||||
"oc-catalog",
|
||||
"oc-catalog",
|
||||
"oc-workflow",
|
||||
"",
|
||||
"oc-workspace",
|
||||
"",
|
||||
"oc-peer",
|
||||
"oc-shared",
|
||||
"oc-shared",
|
||||
"oc-datacenter",
|
||||
}
|
||||
|
||||
var Str = [...]string{
|
||||
"invalid",
|
||||
"data_resource",
|
||||
@@ -40,6 +57,10 @@ func FromInt(i int) string {
|
||||
return Str[i]
|
||||
}
|
||||
|
||||
func (d DataType) API() string {
|
||||
return defaultAPI[d]
|
||||
}
|
||||
|
||||
func (d DataType) String() string {
|
||||
return Str[d]
|
||||
}
|
||||
|
Reference in New Issue
Block a user