external

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: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetS3Uploader

func GetS3Uploader() *s3manager.Uploader

GetS3Uploader set s3 config.

Types

type Repository

type Repository struct{}

Repository - prisma client repository.

func NewRepository

func NewRepository() *Repository

NewRepository - init repository struct.

func (*Repository) GetRepoData

func (r *Repository) GetRepoData(ctx context.Context, userName string, repoName string) (*entity.Repo, error)

GetRepoData request repository data.

func (*Repository) GetUserImage

func (r *Repository) GetUserImage(ctx context.Context, avatarURL string) (image.Image, error)

GetUserImage get image from github.

func (*Repository) UploadImg

func (r *Repository) UploadImg(img image.Image, Name string) (string, error)

UploadImg upload image to s3.

Jump to

Keyboard shortcuts

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