engine/types/config.go

20 lines
264 B
Go
Raw Normal View History

2024-02-11 01:31:01 +08:00
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
}