Documentation ¶
Index ¶
- Constants
- type Config
- type Offline
- func (m *Offline) AccountFeatures(_ context.Context) ([]string, error)
- func (m *Offline) Name() string
- func (m *Offline) ServerFeatures(_ context.Context) ([]string, error)
- func (m *Offline) Start(_ context.Context) error
- func (m *Offline) Stop(_ context.Context) error
- func (m *Offline) StreamFeature(_ context.Context, _ string) (stravaganza.Element, error)
Constants ¶
View Source
const ModuleName = "offline"
ModuleName represents offline module name.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // QueueSize defines maximum offline queue size. QueueSize int `fig:"queue_size" default:"200"` }
Config contains offline module configuration value.
type Offline ¶
type Offline struct {
// contains filtered or unexported fields
}
Offline represents offline module type.
func New ¶
func New( cfg Config, router router.Router, hosts *host.Hosts, resMng resourcemanager.Manager, rep repository.Repository, hk *hook.Hooks, logger kitlog.Logger, ) *Offline
New creates and initializes a new Offline instance.
func (*Offline) AccountFeatures ¶
AccountFeatures returns offline module account disco features.
func (*Offline) ServerFeatures ¶
ServerFeatures returns offline module server disco features.
func (*Offline) StreamFeature ¶
StreamFeature returns offline module stream feature.
Click to show internal directories.
Click to hide internal directories.