creator

package
v0.0.0-...-25e80b3 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2019 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = &Config{
	60,
	0,
	10,
	10,
	jpeg.DefaultQuality,
	color.White,
	true,
	"./github-avatar-cache",
	10,
}

Functions

This section is empty.

Types

type Config

type Config struct {
	ImageSize  int
	ImageRows  int
	ImageCols  int
	ImageApart int
	Quality    int
	BgColor    color.Color
	Reverse    bool
	CacheDir   string
	MaxActive  int
}

type Contributor

type Contributor struct {
	Author struct {
		Login  string `json:"login"`
		Avatar string `json:"avatar"`
	} `json:"author"`
	Total int `json:"total"`
}

type Creator

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

func New

func New(repo string) *Creator

func (*Creator) Create

func (c *Creator) Create() (path string, err error)

func (*Creator) Set

func (c *Creator) Set(conf *Config) *Creator

Jump to

Keyboard shortcuts

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