common

package
v0.0.0-...-6e31b0a Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2015 License: GPL-3.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Axe_v2check

func Axe_v2check(axe *Axe_v2) bool

Types

type Axe_v1

type Axe_v1 struct {
	Name            string `json:"name"`
	Author          string `json:"author"`
	BundleVersion   string `json:"bundleVersion"`
	Description     string `json:"description"`
	Email           string `json:"email"`
	Platform        string `json:"platform"`
	PluginName      string `json:"pluginName"`
	Revision        string `json:"revision,omitempty"`
	Timestamp       string `json:"timestamp"`
	TomahawkVersion string `json:"tomahawkVersion"`
	Type            string `json:"type"`
	Version         string `json:"version"`
	Website         string `json:"website"`
	Manifest        struct {
		Icon      string   `json:"icon"`
		Main      string   `json:"main"`
		Scripts   []string `json:"scripts"`
		Resources []string `json:"resources"`
	} `json:"manifest"`
}

type Axe_v2

type Axe_v2 struct {
	PluginName string `json:"pluginName"`
	Name       string `json:"name"`
	Author     string `json:"author,omitempty"` //deprecated
	Email      string `json:"email,omitempty"`  //deprecated
	Authors    []struct {
		Name  string `json:"name"`
		Email string `json:"email"`
	} `json:"authors"`
	License           string `json:"license"` //Allowed values: GPL3, BSD, MIT, X11, ...
	CustomLicenseText string `json:"customLicenseText,omitempty" bson:",omitempty"`
	BundleVersion     string `json:"bundleVersion"`
	Description       string `json:"description"`
	Platform          string `json:"platform"`
	Revision          string `json:"revision,omitempty" bson:",omitempty"`
	Timestamp         *int64 `json:"timestamp,omitempty"` //nullable
	ApiVersion        string `json:"apiVersion"`
	Version           string `json:"version"`
	Website           string `json:"website"`
	Type              string `json:"type"` //Allowed values: resolver/javascript, resolver/binary
	Manifest          *struct {
		Icon      string   `json:"icon"`
		Main      string   `json:"main"`
		Scripts   []string `json:"scripts"`
		Resources []string `json:"resources"`
	} `json:"manifest,omitempty"`
	Features        []string `json:"features,omitempty" bson:",omitempty"`        //only if type == resolver/javascript
	BinarySignature string   `json:"binarySignature,omitempty" bson:",omitempty"` //only if type == resolver/binary

	// Only used on Relaxe, do *not* set in source metadata.json
	AxeId     string `json:"axeId,omitempty"`
	Downloads *int64 `json:"downloads,omitempty"`
}

type RelaxeConfig

type RelaxeConfig struct {
	CacheDirectory string `json:"cacheDirectory"`
	Database       struct {
		ConnectionString string `json:"connectionString"`
	} `json:"database"`
	KvStore struct {
		ConnectionString string `json:"connectionString"`
	} `json:"kvStore"`
	Server struct {
		Host      string `json:"host"`
		Port      uint16 `json:"port"`
		CachePath string `json:"cachePath"`
	} `json:"server"`
}

func LoadConfig

func LoadConfig(path string) (*RelaxeConfig, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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