add sni connector

This commit is contained in:
ginuerzh
2021-11-26 17:20:10 +08:00
parent 5b97b878fb
commit efbabd4052
14 changed files with 370 additions and 56 deletions

View File

@ -7,6 +7,7 @@ import (
type Metadata interface {
IsExists(key string) bool
Set(key string, value interface{})
Get(key string) interface{}
GetBool(key string) bool
GetInt(key string) int
@ -22,6 +23,10 @@ func (m MapMetadata) IsExists(key string) bool {
return ok
}
func (m MapMetadata) Set(key string, value interface{}) {
m[key] = value
}
func (m MapMetadata) Get(key string) interface{} {
if m != nil {
return m[key]