imageon

package module
v0.0.0-...-f7a87fb Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MIT Imports: 13 Imported by: 0

README

imageon

An image uploading and processing microservice

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetS3Client

func GetS3Client() *s3.Client

func PresignUploadUrl

func PresignUploadUrl(bucket, key string, metadata map[string]string) (string, error)

func ResizeImage

func ResizeImage(r io.Reader, width, height int) (io.Reader, error)

Types

type RawRequest

type RawRequest struct {
	Method string
	Path   string
	Body   string
}

type RawResponse

type RawResponse struct {
	StatusCode int
	Body       string
}

func HandleRequest

func HandleRequest(ctx context.Context, request RawRequest) (*RawResponse, error)

Directories

Path Synopsis
cmd
cli

Jump to

Keyboard shortcuts

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