engine/types/config.go

20 lines
264 B
Go

package types
type AnonymousConf struct {
Key string
Urls []string
}
type PulsarConf struct {
Endpoints string
Token string
Namespaces string
}
func (p *PulsarConf) IsHas() bool {
if p != nil && p.Endpoints != "" {
return true
}
return false
}