toggle: github.com/xchapter7x/toggle Index | Files | Directories

package toggle

import "github.com/xchapter7x/toggle"

Index

Package Files

flipper.go toggle.go

Constants

const (
    FEATURE_ON     = "true"
    FEATURE_OFF    = "false"
    FEATURE_FILTER = "filter:x:x"
)

func Close Uses

func Close()

func Flip Uses

func Flip(flg string, defaultFeature, newFeature interface{}, iargs ...interface{}) (responseInterfaceArray []interface{})

func FlipP Uses

func FlipP(flg string, responseInterfaceArray []interface{}, defaultFeature, newFeature interface{}, iargs ...interface{}) (err error)

func GetFullFeatureSignature Uses

func GetFullFeatureSignature(partialSignature string) (fullSignature string)

func Init Uses

func Init(ns string, engine storageinterface.StorageEngine)

func IsActive Uses

func IsActive(featureSignature string) (active bool)

func RegisterFeature Uses

func RegisterFeature(featureSignature string) (err error)

func RegisterFeatureWithStatus Uses

func RegisterFeatureWithStatus(featureSignature, statusValue string) (err error)

func SetFeatureStatus Uses

func SetFeatureStatus(featureSignature, featureStatus string) (err error)

func ShowFeatures Uses

func ShowFeatures() map[string]*Feature

type Feature Uses

type Feature struct {
    Status string
    // contains filtered or unexported fields
}

func (*Feature) UpdateStatus Uses

func (s *Feature) UpdateStatus(newStatus string)

type Tgl Uses

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

func NewTgl Uses

func NewTgl() *Tgl

func (*Tgl) Args Uses

func (s *Tgl) Args(args ...interface{}) *Tgl

func (*Tgl) Flag Uses

func (s *Tgl) Flag(name string) *Tgl

func (*Tgl) Off Uses

func (s *Tgl) Off(feature interface{}) *Tgl

func (*Tgl) On Uses

func (s *Tgl) On(feature interface{}) *Tgl

func (*Tgl) Returns Uses

func (s *Tgl) Returns(vals ...interface{}) *Tgl

func (*Tgl) Run Uses

func (s *Tgl) Run() (res []interface{}, err error)

Directories

PathSynopsis
engines/localengine
engines/localpubsub
engines/storageinterface

Package toggle imports 5 packages (graph) and is imported by 1 packages. Updated 2016-07-16. Refresh now. Tools for package owners.