pipeline

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DrawText

func DrawText(img image.Image, c config.Text, text string) (image.Image, error)

DrawText shorthand to draw text.

func ProcessingImg

func ProcessingImg(ctx context.Context, r Repoitory, userName string, repoName string) (image.Image, error)

ProcessingImg processing Image for creating repository image.

func ResizeImg

func ResizeImg(img image.Image) image.Image

ResizeImg resize github user image.

func SynthesizeToBase

func SynthesizeToBase(img image.Image) (image.Image, error)

SynthesizeToBase synthesize image to base image.

Types

type Repoitory

type Repoitory interface {
	GetRepoData(ctx context.Context, userName string, repoName string) (*entity.Repo, error)
	GetUserImage(ctx context.Context, avatarURL string) (image.Image, error)
}

Repoitory is espipeline repository interface.

Jump to

Keyboard shortcuts

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