models

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultScope = "default"

Variables

This section is empty.

Functions

This section is empty.

Types

type FeatureMap

type FeatureMap struct {
	Dcdr Root `json:"dcdr"`
}

func EmptyFeatureMap

func EmptyFeatureMap() (fm *FeatureMap)

func NewFeatureMap

func NewFeatureMap(bts []byte) (*FeatureMap, error)

func (*FeatureMap) ToJSON

func (fm *FeatureMap) ToJSON() ([]byte, error)

type Features

type Features map[string]interface{}

type Info

type Info struct {
	CurrentSha string `json:"current_sha,omitempty"`
}

type Root

type Root struct {
	sync.RWMutex
	Info     Info     `json:"info"`
	Features Features `json:"features"`
}

func (*Root) CurrentSha

func (d *Root) CurrentSha() string

func (*Root) Defaults

func (d *Root) Defaults() Features

func (*Root) InScope

func (d *Root) InScope(scope string) Features

func (*Root) MergedScopes

func (d *Root) MergedScopes(scopes ...string) Features

Jump to

Keyboard shortcuts

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