Documentation ¶
Index ¶
- func NewRouter() *gin.Engine
- type Config
- type Service
- func (s *Service) Addr() net.Addr
- func (s *Service) Close() error
- func (s *Service) Err() <-chan error
- func (s *Service) Open() error
- func (s *Service) SetDataStore(dataStore *db.Store)
- func (s *Service) SetLogger(l *log.Logger)
- func (s *Service) SetMessagesWriter(writer *cluster.MessagesWriter)
- func (s *Service) SetMetaStore(metaStore *meta.Store)
- func (s *Service) SetQueryExecutor(executor *db.QueryExecutor)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Enabled bool `toml:"enabled"` BindAddress string `toml:"bind-address"` BaseApiURL string `toml:"base-api-url"` MaxConnections int `toml:"max-connections"` AuthEnabled bool `toml:"auth-enabled"` LogEnabled bool `toml:"log-enabled"` WriteTracing bool `toml:"write-tracing"` PprofEnabled bool `toml:"pprof-enabled"` }
type Service ¶
type Service struct { Version string PingController *controllers.PingController SessionController *controllers.SessionController UsersController *controllers.UsersController DevicesController *controllers.DevicesController OrganizationsController *controllers.OrganizationsController ConversationsController *controllers.ConversationsController MessagesController *controllers.MessagesController Logger *log.Logger // contains filtered or unexported fields }
Service manages the listener and handler for an HTTP endpoint.
func (*Service) SetDataStore ¶
func (*Service) SetMessagesWriter ¶
func (s *Service) SetMessagesWriter(writer *cluster.MessagesWriter)
func (*Service) SetMetaStore ¶
func (*Service) SetQueryExecutor ¶
func (s *Service) SetQueryExecutor(executor *db.QueryExecutor)
Click to show internal directories.
Click to hide internal directories.