muzeighibli

package
v0.0.0-...-a322fba Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2022 License: Apache-2.0 Imports: 25 Imported by: 0

README

muzeighibli.net

Small web application behind http://muzeighibli.net. It use Google App Engine, Polymer and Golang. Before anything edit app.yaml and set your YOUR_GAE_APPLICATION_ID

  • Run : goapp serve .
  • Deploy : goapp deploy .

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindClosestColor

func FindClosestColor(RequestedColor []int, mode string) string

This method finds the closest color for a given RGB tuple and returns the name of the color in given mode

func ReverseMap

func ReverseMap(m map[string]int) map[int]string

This method creates a reverse map

func UpcaseInitial

func UpcaseInitial(str string) string

Types

type Artwork

type Artwork struct {
	Id       int64   `json:"-" datastore:"-"`
	Aid      string  `json:"aid"`
	Hash     string  `json:"hash"`
	Url      string  `json:"url"`
	UrlSmall string  `json:"url_small"`
	Width    int     `json:"width"`
	Height   int     `json:"height"`
	Ratio    float32 `json:"ratio"`
	Caption  string  `json:"caption"`
	Subtitle string  `json:"subtitle"`
	Hidden   bool    `json:"-"`
	Free     bool    `json:"-"`

	Silver  int `json:"silver"`
	Grey    int `json:"grey"`
	Black   int `json:"black"`
	Red     int `json:"red"`
	Maroon  int `json:"maroon"`
	Orange  int `json:"orange"`
	Yellow  int `json:"yellow"`
	Olive   int `json:"olive"`
	Lime    int `json:"lime"`
	Green   int `json:"green"`
	Aqua    int `json:"aqua"`
	Teal    int `json:"teal"`
	Blue    int `json:"blue"`
	Navy    int `json:"navy"`
	Fuchsia int `json:"fuchsia"`
	Purple  int `json:"purple"`
	White   int `json:"white"`

	Created time.Time `json:"-"`
	Updated time.Time `json:"-"`
}

type Caption

type Caption struct {
	Id       int64     `json:"id" datastore:"-"`
	Cid      string    `json:"cid"`
	Gid      string    `json:"gid"`
	Aid      string    `json:"aid"`
	Language string    `json:"lang"`
	Votes    int       `json:"votes"`
	Caption  string    `json:"caption"`
	Created  time.Time `json:"-"`
	Updated  time.Time `json:"-"`
}

type Feature

type Feature struct {
	Id           int64  `json:"id" datastore:"-"`
	Fid          string `json:"fid"`
	Title        string `json:"title"`
	DisplayTitle string `json:"dislay"`
	Subtitle     string `json:"subtitle"`
}

type Movie

type Movie struct {
	Id     string `json:"id"`
	Title  string `json:"title"`
	Locale string `json:"locale"`
}

type User

type User struct {
	Id        int64     `json:"id" datastore:"-"`
	Gid       string    `json:"gid"`
	Did       string    `json:"did"`
	Name      string    `json:"name"`
	Language  string    `json:"lang"`
	Role      string    `json:"role"`
	Score     int       `json:"score"`
	Downloads int       `json:"downloads"`
	Created   time.Time `json:"-"`
	Updated   time.Time `json:"-"`
}

type Vote

type Vote struct {
	Id      int64     `json:"id" datastore:"-"`
	Cid     string    `json:"cid"`
	Gid     string    `json:"gid"`
	Up      bool      `json:"up"`
	Created time.Time `json:"-"`
	Updated time.Time `json:"-"`
}

Jump to

Keyboard shortcuts

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