imagegate

package module
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2021 License: MIT Imports: 19 Imported by: 0

README

s3-image-gate

upload image to Amazon S3 Bucket and check Content Moderation with Amazon Rekognition

Usage

Usage of s3-image-gate
  -bucket string
        upload dest bucket (required)
  -debug
        enable debug log
  -help
        show help
  -index
        handle index
  -key-prefix string
        upload dest key prefix
  -port int
        http port (default 8000)
  -version
        show version

LICENSE

MIT License

Copyright (c) 2021 ikeda-masashi

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, cfg *Config) error

Types

type Config

type Config struct {
	Port                int
	Region              string
	S3Endpoint          string
	RekognitionEndpoint string
	ViewIndex           bool
	Bucket              string
	KeyPrefix           string
}

func DefaultConfig

func DefaultConfig() *Config

func (*Config) NewHander

func (cfg *Config) NewHander() (*Handler, error)

type Handler

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

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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