Documentation ¶
Index ¶
- type Config
- type Service
- func (s *Service) ChatCreate(c *fiber.Ctx) error
- func (s *Service) ChatPostMessage(c *fiber.Ctx) error
- func (s *Service) GetChatMessages(c *fiber.Ctx) error
- func (s *Service) GetUserChats(c *fiber.Ctx) error
- func (s *Service) Protected(c *fiber.Ctx) error
- func (s *Service) Run(ctx context.Context) error
- func (s *Service) Shutdown(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Listen string `env:"CHATS_LISTEN_ADDRESS,default=localhost:8084"`
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func New ¶
func New(config Config, log *logrus.Logger, prom *monitoring.Service, storage *storage.ChatsService, authApi auth_api.AuthServiceClient, counter counter_api.CounterServiceClient) (*Service, error)
func (*Service) ChatCreate ¶
func (*Service) ChatPostMessage ¶
func (*Service) GetChatMessages ¶
func (*Service) GetUserChats ¶
Click to show internal directories.
Click to hide internal directories.