offline

package
v0.59.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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

func (m *Offline) AccountFeatures(_ context.Context) ([]string, error)

AccountFeatures returns offline module account disco features.

func (*Offline) Name

func (m *Offline) Name() string

Name returns offline module name.

func (*Offline) ServerFeatures

func (m *Offline) ServerFeatures(_ context.Context) ([]string, error)

ServerFeatures returns offline module server disco features.

func (*Offline) Start

func (m *Offline) Start(_ context.Context) error

Start starts offline module.

func (*Offline) Stop

func (m *Offline) Stop(_ context.Context) error

Stop stops offline module.

func (*Offline) StreamFeature

func (m *Offline) StreamFeature(_ context.Context, _ string) (stravaganza.Element, error)

StreamFeature returns offline module stream feature.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL