offline

package
v0.51.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2021 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 Offline

type Offline struct {
	// contains filtered or unexported fields
}

Offline represents offline module type.

func New

func New(
	router router.Router,
	hosts *host.Hosts,
	rep repository.Offline,
	locker locker.Locker,
	sn *sonar.Sonar,
	opts Options,
) *Offline

New creates and initializes a new Offline instance.

func (*Offline) AccountFeatures

func (m *Offline) AccountFeatures() []string

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() []string

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 added in v0.51.0

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

StreamFeature returns offline module stream feature.

type Options

type Options struct {
	// QueueSize defines maximum offline queue size.
	QueueSize int
}

Options contains offline module configuration options.

Jump to

Keyboard shortcuts

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