Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
22a7f0099
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Summer2022
22a7f0099
Commits
31dba4e2
Commit
31dba4e2
authored
Apr 28, 2019
by
fangyincheng
Browse files
Options
Downloads
Patches
Plain Diff
Rem:delete publi
parent
10d89a5d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
public/codec.go
+0
-44
0 additions, 44 deletions
public/codec.go
public/const.go
+0
-5
0 additions, 5 deletions
public/const.go
with
0 additions
and
49 deletions
public/codec.go
deleted
100644 → 0
+
0
−
44
View file @
10d89a5d
package
public
//////////////////////////////////////////
// codec type
//////////////////////////////////////////
type
CodecType
int
const
(
CODECTYPE_UNKNOWN
CodecType
=
iota
CODECTYPE_JSONRPC
CODECTYPE_DUBBO
)
var
codecTypeStrings
=
[
...
]
string
{
"unknown"
,
"jsonrpc"
,
"dubbo"
,
}
func
(
c
CodecType
)
String
()
string
{
typ
:=
CODECTYPE_UNKNOWN
switch
c
{
case
CODECTYPE_JSONRPC
:
typ
=
c
case
CODECTYPE_DUBBO
:
typ
=
c
}
return
codecTypeStrings
[
typ
]
}
func
GetCodecType
(
t
string
)
CodecType
{
var
typ
=
CODECTYPE_UNKNOWN
switch
t
{
case
codecTypeStrings
[
CODECTYPE_JSONRPC
]
:
typ
=
CODECTYPE_JSONRPC
case
codecTypeStrings
[
CODECTYPE_DUBBO
]
:
typ
=
CODECTYPE_DUBBO
}
return
typ
}
This diff is collapsed.
Click to expand it.
public/const.go
deleted
100644 → 0
+
0
−
5
View file @
10d89a5d
package
public
const
(
DUBBOGO_CTX_KEY
=
"dubbogo-ctx"
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment