This repository has been archived on 2024-11-28. You can view files and clone it, but cannot push or open issues or pull requests.
Files
schisandra-cloud-album/config/conf_nsq.go
landaiqing 83b6fb6322 🎨 update / add nsq
2024-09-28 23:36:26 +08:00

13 lines
182 B
Go

package config
import "fmt"
type NSQ struct {
Host string `yaml:"host"`
Port int `yaml:"port"`
}
func (n *NSQ) Addr() string {
return fmt.Sprintf("%s:%d", n.Host, n.Port)
}