mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-11 20:45:57 +08:00
feat: local cache
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package option
|
||||
|
||||
func NewOption() *Option {
|
||||
return &Option{}
|
||||
}
|
||||
|
||||
type Option struct {
|
||||
Link []string
|
||||
}
|
||||
|
||||
func (o *Option) WithLink(key ...string) *Option {
|
||||
if len(key) > 0 {
|
||||
if len(o.Link) == 0 {
|
||||
o.Link = key
|
||||
} else {
|
||||
o.Link = append(o.Link, key...)
|
||||
}
|
||||
}
|
||||
return o
|
||||
}
|
||||
Reference in New Issue
Block a user