feature

package
v0.0.0-...-a7c217f Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: AGPL-3.0 Imports: 12 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flags

type Flags struct {
	DocID   string
	DocRev  string
	M       map[string]interface{}
	Sources []*Flags
}

Flags is a struct for a set of feature flags.

func GetFlags

func GetFlags(inst *instance.Instance) (*Flags, error)

GetFlags returns the list of feature flags for the given instance.

func (*Flags) Clone

func (f *Flags) Clone() couchdb.Doc

Clone is part of the couchdb.Document interface

func (*Flags) DocType

func (f *Flags) DocType() string

DocType is part of the couchdb.Document interface

func (*Flags) GetList

func (f *Flags) GetList(name string) ([]interface{}, error)

func (*Flags) HasListItem

func (f *Flags) HasListItem(name, item string) (bool, error)

func (*Flags) ID

func (f *Flags) ID() string

ID is part of the couchdb.Document interface

func (*Flags) MarshalJSON

func (f *Flags) MarshalJSON() ([]byte, error)

MarshalJSON is used for marshalling to JSON.

func (*Flags) Rev

func (f *Flags) Rev() string

Rev is part of the couchdb.Document interface

func (*Flags) SetID

func (f *Flags) SetID(id string)

SetID is part of the couchdb.Document interface

func (*Flags) SetRev

func (f *Flags) SetRev(rev string)

SetRev is part of the couchdb.Document interface

func (*Flags) UnmarshalJSON

func (f *Flags) UnmarshalJSON(bytes []byte) error

UnmarshalJSON is used to parse JSON.

Jump to

Keyboard shortcuts

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