config

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorCatalogueIsNotAvailable = errors.New("catalogue is not available")
	ErrorInvalidKey              = errors.New("invalid key")
)

Functions

This section is empty.

Types

type Disable

type Disable struct {
	Key                         string
	ErrorInvalidKey             app_msg.Message
	ErrorUnableToDisableFeature app_msg.Message
	InfoOptOut                  app_msg.Message
}

func (*Disable) Exec

func (z *Disable) Exec(c app_control.Control) error

func (*Disable) Preset

func (z *Disable) Preset()

func (*Disable) Test

func (z *Disable) Test(c app_control.Control) error

type Enable

type Enable struct {
	Key                        string
	ErrorInvalidKey            app_msg.Message
	ErrorUnableToEnableFeature app_msg.Message
	InfoCancelled              app_msg.Message
	InfoOptIn                  app_msg.Message
}

func (*Enable) Exec

func (z *Enable) Exec(c app_control.Control) error

func (*Enable) Preset

func (z *Enable) Preset()

func (*Enable) Test

func (z *Enable) Test(c app_control.Control) error

type Features

type Features struct {
	SectionDescription   app_msg.Message
	SectionSettings      app_msg.Message
	HeaderKey            app_msg.Message
	HeaderDesc           app_msg.Message
	HeaderStatus         app_msg.Message
	HeaderOptInUser      app_msg.Message
	HeaderOptInTimestamp app_msg.Message
}

func (*Features) Exec

func (z *Features) Exec(c app_control.Control) error

func (*Features) Preset

func (z *Features) Preset()

func (*Features) Test

func (z *Features) Test(c app_control.Control) error

type SampleFeature

type SampleFeature struct {
	app_feature.OptInStatus
}

type SampleFeatureNotInCatalogue

type SampleFeatureNotInCatalogue struct {
	app_feature.OptInStatus
}

Jump to

Keyboard shortcuts

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