diff --git a/public/codec.go b/public/codec.go deleted file mode 100644 index e88b9829c577dca11a7a3ffdc2e4d97536d45035..0000000000000000000000000000000000000000 --- a/public/codec.go +++ /dev/null @@ -1,44 +0,0 @@ -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 -} diff --git a/public/const.go b/public/const.go deleted file mode 100644 index d7f385ecf4530ebc2174c7162a44a88e65106319..0000000000000000000000000000000000000000 --- a/public/const.go +++ /dev/null @@ -1,5 +0,0 @@ -package public - -const ( - DUBBOGO_CTX_KEY = "dubbogo-ctx" -)