add sni connector
This commit is contained in:
@ -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]
|
||||
|
Reference in New Issue
Block a user