🎨 update / add nsq
This commit is contained in:
12
config/conf_nsq.go
Normal file
12
config/conf_nsq.go
Normal file
@@ -0,0 +1,12 @@
|
||||
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)
|
||||
}
|
Reference in New Issue
Block a user