func NewHealthcheckController(nc *natsio.Nats) (hc *HealthcheckController) { hc = &HealthcheckController{} hc.natsCon = nc hc.routes = []*r.NatsRoute{ r.NewNatsRoute("user.healthcheck", hc.Healthcheck), } return }
func (c *PostsController) GetRoutes() []*r.NatsRoute { return []*r.NatsRoute{ r.NewNatsRoute("blog.posts.list", c.List), } }
func (c *UsersController) GetRoutes() []*r.NatsRoute { return []*r.NatsRoute{ r.NewNatsRoute(mqmsgspec.AuthenticateUserSubject, c.Authenticate), } }