service

package
v0.0.0-...-f6a5026 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: BSD-2-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrExists = errors.New("config already exists")
)

Functions

func SetImapnotify

func SetImapnotify(f CtorImapnotify)

func SetMbsync

func SetMbsync(f CtorMbsync)

Types

type CtorImapnotify

type CtorImapnotify func(*config.Config, *config.Profile) Service

type CtorMbsync

type CtorMbsync func(*config.Config) Service

type Service

type Service interface {
	Start()
	Stop()
	Enable()
	Disable()
	Remove() error
	Status() Status
	GenConf(bool) error
}

func ImapnotifyCtor

func ImapnotifyCtor(cfg *config.Config, profile *config.Profile) Service

func MbsyncCtor

func MbsyncCtor(cfg *config.Config) Service

func NewImapnotify

func NewImapnotify(cfg *config.Config, profile *config.Profile) Service

func NewMbsync

func NewMbsync(cfg *config.Config) Service

type Status

type Status int
const (
	Unknown Status = iota
	DisabledRunning
	DisabledStopped
	EnabledRunning
	EnabledStopped
	NotFound
)

func (Status) String

func (s Status) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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